skip to Main Content

Xcode – How do assign a type of file to my app on Mac

I try to assign a file type to my application. In Info.plist I add: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>type</string> </array> <key>CFBundleTypeIconFile</key> <string>icon</string> <key>CFBundleTypeName</key> <string>My Project</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSTypeIsPackage</key> <false/> </dict> </array> In Main.mm: .... -(BOOL) application:(NSApplication *)sender openFile:(NSString *)filename…

VIEW QUESTION
Back To Top
Search