I have custom made files that were created by my app. I want to be able to double-click on these files and make them open through my app. How can I achieve this?!
Asked
Active
Viewed 817 times
0
-
yeah...looks very the same except that I don't know how to add file types to plist, and the link you posted doesn't talk about it either. Do you know how to do it?! thank you – Eugene Gordin Oct 02 '13 at 21:46
1 Answers
0
First, choose a unique file name extension for your files. Then add Info.plist information about that file type. See Apple's Info.plist reference, paying particular attention to the sections on CFBundleDocumentTypes
and UTExportedTypeDeclarations
.

JWWalker
- 22,385
- 6
- 55
- 76
-
I followed that page and modified plist, but when I double click on the file I want to open with my app it throws me this: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unsupported store type.' terminate called throwing an exception – Eugene Gordin Oct 03 '13 at 00:02
-
@EugeneGordin: Googling "Unsupported store type" leads me to believe that it has to do with Core Data, which I've never used, so I don't think I can help you any further. – JWWalker Oct 03 '13 at 00:44