Re: not having a new document be created on launch
Re: not having a new document be created on launch
- Subject: Re: not having a new document be created on launch
- From: John Blackburn <email@hidden>
- Date: Mon, 27 May 2002 10:27:57 -0700
Just out of curiosity, how couldn't you locate this information in the
archives? Just using the salient words from the title of this thread,
the words "new document launch" yields pay-dirt on the very first hit:
<
http://cocoa.mamasam.com/COCOADEV/2002/02/2/26064.php>.
Trying the words "new document create launch" matches the same entry on
the fourth hit: <
http://cocoa.mamasam.com/COCOADEV/2002/02/2/26064.php>
John Blackburn
On Monday, May 27, 2002, at 12:08 AM, mmalcolm crawford wrote:
>
On Sunday, May 26, 2002, at 11:13 PM, Chaz wrote:
>
>
> I'm sure this topic has been discussed to death, but I can never
>
> find anything in the archives.
>
>
Indeed -- I just tried to find the answer and it didn't show up.
>
Despite the fact that Erik has answered this question about half a
>
dozen times, let alone others... <sigh>
>
>
> In a document-based application, a new document is created when the
>
> application launches. But my application is a viewer, and obviously I
>
> don't want new "blank" documents coming up since there is nothing to
>
> create. How can this feature be disabled?
>
>
>
Use the NSApplication delegate method:
>
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;
>
>
(In your MainMenu nib file, the File's Owner is the application
>
instance -- you can set its delegate there...)
>
>
mmalc
>
_______________________________________________
>
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.
_______________________________________________
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.