Re: check if app opens with a document on startup

2008-05-23 Thread John Stiles
Note that these delegate methods will not work properly until your Info.plist has been updated to reflect the file types which your app supports. I've recently opened a radar on this because it doesn't appear to be well-documented and I spent a while trying to figure out why my delegates were

Re: check if app opens with a document on startup

2008-05-23 Thread Torsten Curdt
On May 23, 2008, at 16:52, John Stiles wrote: Note that these delegate methods will not work properly until your Info.plist has been updated to reflect the file types which your app supports. Sure All good. But I was wondering if it is possible to find out if the application has been

check if app opens with a document on startup

2008-05-20 Thread Torsten Curdt
I have a document based application. The AppController prevents empty documents to be created at startup with - (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender { return NO; } All good. But I was wondering if it is possible to find out if the application has been opened

Re: check if app opens with a document on startup

2008-05-20 Thread Jens Alfke
On 20 May '08, at 6:31 AM, Torsten Curdt wrote: All good. But I was wondering if it is possible to find out if the application has been opened by dragging a document onto it. Your delegate will get one of these calls: - (BOOL)application:(NSApplication *)sender openFile:(NSString