Re: Preventing window selection
Re: Preventing window selection
- Subject: Re: Preventing window selection
- From: Glenn Andreas <email@hidden>
- Date: Wed, 14 Jul 2004 19:12:45 -0500
At 6:15 PM -0500 7/14/04, Ricky Sharp wrote:
In the Cocoa version, I have a derived NSWindow class to manage my
blanking windows. I provided overrides to canBecomeKeyWindow: and
canBecomeMainWindow: (both return NO), but they still allow the
window to be selected and moved to the front. To get past this
hurdle for now, I simply put the content window in the floating
window layer.
I've never tried this, but I'd suggest, in your NSWindow class,
override -orderFront:, -orderFrontRegardless, -makeKeyAndOrderFront,
to all just call orderBack instead.
So anything that tries to bring it to the front (via whatever
mechanism) just results in sending it to the back of it's layer.
Don't know how well this would play with Expose, but it's worth a shot...
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.