• 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
Loading a default file in doc based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading a default file in doc based app


  • Subject: Loading a default file in doc based app
  • From: Fabio Genoese <email@hidden>
  • Date: Sat, 20 Mar 2004 19:57:46 +0100

Hello,

I've searched the archives and I found this hint:

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[[NSDocumentController sharedDocumentController] openDocumentWithContentsOfFile:thePath display:YES]
}

I've added this code to my AppController. Unfortunately, it returns null although I'm 100% sure that the path is correct. Anything I've missed?

thanks,
Fabio
_______________________________________________
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.


  • Follow-Ups:
    • Re: Loading a default file in doc based app
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: how to get this type of regex matching happening (using AGRegex)?
  • Next by Date: Re: Programmatically Create Login Item
  • Previous by thread: background colour of NSBrowser
  • Next by thread: Re: Loading a default file in doc based app
  • Index(es):
    • Date
    • Thread