Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KPForMacRum

macrumors newbie
Original poster
Sep 30, 2008
7
0
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:
<key>CFBundleTypeExtensions</key>
<array>
<string>iws</string>
</array>
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.
Regards,
Chris
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.