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??

What's the best way to handle this?

thx.

v.

-(BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
NSLog(@"applicationShouldOpenUntitledFile:");

return [[NSUserDefaults standardUserDefaults]
boolForKey:VAEmptyDocumentKey];

}
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to