Re: first document based application
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.