7

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:

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:

snapshot of plist

4

1 回答 1

5

也许您的应用程序委托需要实现- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames

于 2013-10-03T21:31:55.170 回答