Re: Preventing mouse clicks from bringing a window to the front
Re: Preventing mouse clicks from bringing a window to the front
- Subject: Re: Preventing mouse clicks from bringing a window to the front
- From: Gregg Witmer <email@hidden>
- Date: Tue, 22 Feb 2005 13:43:19 -0500
Thanks Evan, Tim and Ricky!
NSWindow's -addChildWindow:ordered looks like it's going to do it for me.
Example: [behindWindow addChildWindow:frontWindow ordered:NSWindowAbove];
I made a subclass of NSWindow that I can set an enabled flag.
Example: [behind setEnabled:NO];
When this flag is FALSE, -canBecomeKeyWindow and -canBecomeMainWindow
return NO.
Also when this flag is FALSE, I am finding situations where
-sendEvent needs to drop or redirect leftMouseDown events.
I am still ironing out those details but it certainly looks like this
was the solution I was looking for.
On the surface, this solution also looks to be Expose' friendly.
Thanks again for the help.
Gregg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden