• 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: first document based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first document based application


  • Subject: Re: first document based application
  • From: Justin Lundy <email@hidden>
  • Date: Wed, 2 Apr 2003 22:11:46 -0800

Your NSApplication delegate gets called:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
To suppress untitled doc creation at launch, have the delegate respond FALSE to this.

On Wednesday, April 2, 2003, at 06:53 PM, Greg Hamilton wrote:

Hi,

I'm writing my first document based application. I've used Project Builder to create a new 'Cocoa Document-based application'.

It's a simple viewer for a particular document format and it basically works but, because it's just a viewer I don't want the application to automatically create a new empty document when it starts. I can't work out how to stop this happening.

Greg Hamilton
_______________________________________________
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.

References: 
 >first document based application (From: Greg Hamilton <email@hidden>)

  • Prev by Date: resizing cells with NSBrowser
  • Next by Date: Re: Three builds to build...
  • Previous by thread: Re: first document based application
  • Next by thread: Re: first document based application
  • Index(es):
    • Date
    • Thread