• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Observing [NSWindow orderOut:] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Observing [NSWindow orderOut:] ? (From: Matt Gough <email@hidden>)
 >Re: Observing [NSWindow orderOut:] ? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Newbie Memory Questions on a Code Fragment
  • Next by Date: Re: Accessing interface elements (iPhone vs Mac)
  • Previous by thread: Re: Observing [NSWindow orderOut:] ?
  • Next by thread: Re: Observing [NSWindow orderOut:] ?
  • Index(es):
    • Date
    • Thread