Re: How to stop initial window ?
Re: How to stop initial window ?
- Subject: Re: How to stop initial window ?
- From: Michael Dagate <email@hidden>
- Date: Fri, 6 Jul 2001 21:26:07 -0500
Create a delegate of your app class (usually NSApplication) and
instantiate it in your main nib file (usually MainMenu.nib). Connect the
delegate outlet from File's Owner to the delegate object you just
instantiated. Override -applicationShouldOpenUntitledFile in your
delegate class and return FALSE.
Michael
On Friday, July 6, 2001, at 08:07 pm, Robert Miller wrote:
I'm new to Cocoa and I'm working on a document based application
starting from the basic editor application supplied with Apple's Cocoa
Dev. seminar. This is probably a basic question but here goes. When I
launch the application it automatically opens an empty window. I don't
want it to do that, so how do I stop that behavior ? I haven't beena
able to find anything in NSDocument or NSApplication relating to this.
Any help is greatly appreciated.