View Full Version : application:openFile: not called

Feb 1, 2009, 06:17 PM
I have non-Document based CoreData application. I am trying to catch information about file that is double-clicked (it has .iws extension, which is mentioned in .plist file as:
Also, I have made sure in GetInfo, that my application is associated to open this file type. However, when I double-click the file I created with this application, the application:openfile: is not called. I have setup delegate for the application properly. I noticed that other events such as applicationDidFinishLaunching: are called correctly.

What may be going wrong here? Is application:openfile: only good for document based application?

I have the following as initial code:
int main(int argc, char *argv[])
[NSApplication sharedApplication];
return NSApplicationMain(argc, (const char **) argv);

Any help will be greatly appreciated.