• 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: Eric Blom <email@hidden>
  • Date: Wed, 2 Apr 2003 21:51:23 -0800

Greg,
I'm pretty sure you need to add the following to your controller.

- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
return NO;
}

Cheers,
Eric

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.

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

  • Prev by Date: Re: Digest API?
  • Next by Date: Re: Digest API?
  • Previous by thread: first document based application
  • Next by thread: Re: first document based application
  • Index(es):
    • Date
    • Thread