• 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: NSWindowWillCloseNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowWillCloseNotification


  • Subject: Re: NSWindowWillCloseNotification
  • From: email@hidden
  • Date: Tue, 12 Mar 2002 18:11:28 -0800

In my app what I've found is that the notification is sent once per window
but that there is a mysterious extra window that also sends a notification.

Well, this elicited a number of interesting suggestions.

Does opening an NSPanel, or opening a window from a nib-file, cause some
sort of invisible "host" window to come into existence? If so, and if this
invisible "host" is what's sending the WillCloseNotification, should the
sending of this notification be considered a bug? Or is something else
going on here, and if so, what?

Pay no attention to the man behind the curtain.
AppKit does all manner of odd things like this, and they change from release to release. It should have no effect on you, as long as you follow the rules, including checking that the object is what you think it ought to be when you receive a notification or a delegate message. Code defensively. It is not a bug that a notification is sent; a window has in fact been closed. It's just not *your* window.
Now, if you're just *curious* about what this particular window is doing, then by all means, so am I. :->

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: NSImage & Multi-Page TIFF?
  • Next by Date: Re: HFS Type/Creator
  • Previous by thread: Re: NSWindowWillCloseNotification
  • Next by thread: Apologies for the noise.
  • Index(es):
    • Date
    • Thread