Re: NSWindowWillCloseNotification
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.