application:openFile: not called

Discussion in 'Mac Programming' started by KPForMacRum, Feb 1, 2009.

  1. KPForMacRum macrumors newbie

    Sep 30, 2008
    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:eek:penfile: 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:eek:penfile: 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.

Share This Page