Re: Keeping an NSDocument Open
Re: Keeping an NSDocument Open
- Subject: Re: Keeping an NSDocument Open
- From: Craig Altenburg <email@hidden>
- Date: Wed, 26 Jul 2006 19:57:49 -0400
On 26 Jul 2006, at 4:13 PM, j o a r wrote:
On 26 jul 2006, at 22.07, Craig Altenburg wrote:
I need to keep my NSDocument open even after the last window closes.
The documentation that I can find seems to indicate that this
should be possible but I have yet to find an easy way to do it.
How about: "-[NSWindowController setShouldCloseDocument:]
j o a r
You would think but, no. That method controls whether the window
controller will always close the document. If set to YES the
document is closed when this controller's window is closed regardless
of any other open windows. If set to NO the document is only closed
if this is the last NSWindowController.
--
Craig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden