Re: Gray background behind app windows?

Kevin Reid <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Sep 19, 2009, at 15:57, Christiaan Hofman wrote:

>> How would I get the system to ignore mousedowns in the window so it  
>> does not get moved to the front?
> You probably want to override canBecomeKeyWindow and  
> canBecomeMainWindow to return NO, and you may also want to use  
> setIgnoresMouseEvents:.


It's been a long time since I did this, but I believe that borderless  
windows cannot become key or main by default -- you have to override  
if you want them to.

I don't know the details for preventing a window from being brought to  
the front, but note that for the purpose, clicks should not pass  
*through* it but be stopped by it.

Also, don't forget to think about the proper behavior in a multiple- 
monitor system.

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.