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: mmalcolm crawford <email@hidden>
- Date: Mon, 27 May 2002 00:08:56 -0700
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.