• 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: not having a new document be created on launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: not having a new document be created on launch
      • From: John Blackburn <email@hidden>
References: 
 >not having a new document be created on launch (From: Chaz <email@hidden>)

  • Prev by Date: Re: NSTableView
  • Next by Date: Re: Database applications
  • Previous by thread: not having a new document be created on launch
  • Next by thread: Re: not having a new document be created on launch
  • Index(es):
    • Date
    • Thread