Re: Avoid creating a new document when launching an application
Re: Avoid creating a new document when launching an application
- Subject: Re: Avoid creating a new document when launching an application
- From: Sherm Pendley <email@hidden>
- Date: Sat, 15 Oct 2005 18:39:12 -0400
On Oct 15, 2005, at 4:45 PM, email@hidden wrote:
I have a Document-based application (NSPersisentDocument to be
precise) for
which I would like to override the default behavior when launching:
I'd like to
avoid creating a new blank document (for example by displaying an
open dialog).
How can I do this? What should I override? (Of course, the
file:"new" command
should still work)
In your application delegate, implement -
applicationShouldOpenUntitledFile:
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden