Re: Observing [NSWindow orderOut:] ?
Re: Observing [NSWindow orderOut:] ?
- Subject: Re: Observing [NSWindow orderOut:] ?
- From: Jim Correia <email@hidden>
- Date: Wed, 21 Jan 2009 13:16:00 -0500
On Jan 21, 2009, at 1:12 PM, Shawn Erickson wrote:
On Wed, Jan 21, 2009 at 10:04 AM, Matt Gough <email@hidden>
wrote:
Are there any notifications that get sent when a window is ordered
out (as
opposed to closing)? I have a button subclass that needs to know
when its
parent window is hidden. I was hoping that a [MyButton viewDidHide]
override
would catch these, but that isn't getting called when the window
hides.
To help answer your question can you better explain why a button needs
to know about its "owning" window being ordered out? Why just when
ordered out?
A use case for this is making a color swatch that "detaches" from the
color panel correctly.
NSColorWell will detach from the color panel if you close the color
panel by clicking in the close box, but doesn't detach if you toggle
the color panel closed via a menu item targeting -
orderFrontColorPanel: (whose behavior no longer matches the literal
name.)
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden