Re: applicationShouldOpenUntitledFile question
Re: applicationShouldOpenUntitledFile question
- Subject: Re: applicationShouldOpenUntitledFile question
- From: Seth Willits <email@hidden>
- Date: Mon, 11 Aug 2008 21:27:28 -0700
On Aug 11, 2008, at 8:57 PM, vince wrote:
I'm using the following to allow the user to run my NSPersistentDoc
application with or without opening an empty document at launch (set
with a
check box preference setting). I want to add a second optional
preference
that runs the previously opened (saved) document. I think I need to
use the
sane method??
For that you don't want applicationShouldOpenUntitledFile. What you
want is simply to open the document when the app has finished
launching. When the app quits, if there's a document open you save the
file URL in preferences. When the app finishes launching, just check
the preference for whether you should open the previous document and
open the last document URL if there is one.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden