• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to stop initial window ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: How to stop initial window ? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: optimization time !
  • Next by Date: Notifications from an object's dealloc method?
  • Previous by thread: Re: How to stop initial window ?
  • Next by thread: Re: How to stop initial window ?
  • Index(es):
    • Date
    • Thread