Re: NSWindowWillCloseNotification
Re: NSWindowWillCloseNotification
- Subject: Re: NSWindowWillCloseNotification
- From: Matt Neuburg <email@hidden>
- Date: Tue, 12 Mar 2002 09:29:49 -0800
On Mon, 11 Mar 2002 10:31:31 -0800, I <email@hidden> said:
>
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.
"It's the dock icon." No, because the NSWindowWillCloseNotification in
question arrives only if the user has ever opened my Preferences dialog,
whereas the dock icon is present always.
"It's the menubar." No, for the same reason.
"Try NSLogging the window title." That didn't lead to much, but it gave me
an idea; I NSLogged the window's frame. It is {{0, 0}, {56, 17}}. So it's a
small invisible window, too small to be useful for much, considerably wider
than high, located in the lower left corner of the main screen.
"Do you load a nib-file with a window that is never displayed?" No; but the
window in question only comes into existence if I load a nib-file with a
window that *is* displayed. It's my Preferences dialog, an NSPanel. (There
is nothing else, except of course the usual two proxies, in this nib-file.)
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?
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.