Skip navigation.
 
mlRe: Keeping an NSDocument Open
FROM : Craig Altenburg
DATE : Thu Jul 27 01:57:49 2006

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

Related mailsAuthorDate
mlKeeping an NSDocument Open Craig Altenburg Jul 26, 22:07
mlRe: Keeping an NSDocument Open j o a r Jul 26, 22:13
mlRe: Keeping an NSDocument Open Craig Altenburg Jul 27, 01:57
mlRe: Keeping an NSDocument Open [SOLVED] Craig Altenburg Jul 27, 23:47