Loading a default file in doc based app
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.