• 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
applicationShouldOpenUntitledFile question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applicationShouldOpenUntitledFile question


  • Subject: applicationShouldOpenUntitledFile question
  • From: vince <email@hidden>
  • Date: Mon, 11 Aug 2008 23:57:06 -0400

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

  • Follow-Ups:
    • Re: applicationShouldOpenUntitledFile question
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Get specified window from nib
  • Next by Date: Re: applicationShouldOpenUntitledFile question
  • Previous by thread: Re: Tidying NSURLs Containing XML
  • Next by thread: Re: applicationShouldOpenUntitledFile question
  • Index(es):
    • Date
    • Thread