Completely remove a window (from NSApp)?
Completely remove a window (from NSApp)?
- Subject: Completely remove a window (from NSApp)?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 27 Dec 2006 14:56:02 -0800
- Thread-topic: Completely remove a window (from NSApp)?
I understand that NSApp maintains the "master list" of references to all the
app's windows, which it returns a copy of in response to -[NSApp windows].
So, it seems like NSApp should have a -removeWindow: method in order to
remove them, but it does not.
So, how do I completely remove a window?
Thanks!
Jerry Krinock
Why I'm asking this: This app is sort-of document-based. My documents are
subclasses of NSDocument, but I've over-ridden a lot of stuff to get special
behavior, and presently I need to remove a window as part of "Don't Save".
By the way, I can't find any documentation on how a window gets added to
that "master list" in NSApp either. It seems to be by magic!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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