How to open a default document at startup
How to open a default document at startup
- Subject: How to open a default document at startup
- From: "Mark's Studio" <email@hidden>
- Date: Thu, 6 Sep 2001 22:58:22 +0200
I want to open a default document the first time my app starts up,
how do i do it, the one below don't work (-[NSApplication openFile:]:
selector not recognized)
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
if( [NSApp openFile:[Preferences objectForKey:DefaultDoc]])
return NO;
else
return YES;
}
Thanks
Peter Mark
Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden