I developed a document-based app that uses Core Data. When I start the app normally by double-clicking on it, it works perfectly and I'm able to create some data files with it. Then I'm closing the app, and trying to open the file I just created through the app, but I get the window that says:
The document "data.hso" couldn't be opened. MyApp cannot open files of this type.
I did modify the plist file to include the Document Types. As a resource I used:
http://daemonconstruction.blogspot.com/2012/05/drop-of-file-folder-on-dock-icon.html
https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
Dropping Files onto Dock Icon in Cocoa
I'm really desperate at this moment, cause I really can't think of a reason why it shouldn't work. Any kind of help is highly appreciated!
Here is the snapshot of my plist:
Maybe your application delegate needs to implement - (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With