On Jan 21, 2009, at 1:12 PM, Shawn Erickson wrote:

On Wed, Jan 21, 2009 at 10:04 AM, Matt Gough <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to