• 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: Matt Neuburg <email@hidden>
  • Date: Mon, 11 Mar 2002 10:31:31 -0800

On Tue, 5 Mar 2002 12:41:07 -0800, Ed Silva <email@hidden> said:

>Is there a known issue with NSWindowWillCloseNotifications where
>the notification is sent twice per window?

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.
I asked about the origin of this mysterious extra window on this list, but
didn't get any answers; and I have not figured out where it's coming from.
It never appears physically, but I can confirm its presence by watching my
app with ObjectAlloc or by using NSLog in the method that handles the
notification. I work around the problem easily, though, by examining the
identity of the window that sent the notification, e.g. by looking at its
title or some other feature I can quantify; if it isn't a window I
recognize, I just ignore the notification. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSWindowWillCloseNotification
      • From: Andreas Monitzer <email@hidden>
    • Re: NSWindowWillCloseNotification
      • From: Jim Roepcke <email@hidden>
  • Prev by Date: Fonts, please help!
  • Next by Date: Re: How do I set an rtfd help file in PB?
  • Previous by thread: NSWindowWillCloseNotification
  • Next by thread: Re: NSWindowWillCloseNotification
  • Index(es):
    • Date
    • Thread