Created
July 17, 2011 16:26
-
-
Save kellymredd/1087747 to your computer and use it in GitHub Desktop.
specify file types with your app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This goes in your Info.plist | |
it's been a while since I added this functionality so I'm not sure what was added and what was already there, you may already have some pieces of the code. | |
When you tap and hold a mail attachment your app will show up in the list of associated apps and switch to your app when selected. | |
*/ | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> | |
<string>YOUR APPLICATION ID</string> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>YOUR APP NAME</string> | |
</array> | |
</dict> | |
</array> | |
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeIconFiles</key> | |
<array> | |
<string>YOUR ICON FILES</string> | |
<string>YOUR ICON FILES</string> | |
</array> | |
<key>CFBundleTypeName</key> | |
<string>Songwriter Files</string> | |
<key>CFBundleTypeRole</key> | |
<string>Viewer</string> | |
<key>LSHandlerRank</key> | |
<string>Owner</string> | |
<key>LSItemContentTypes</key> | |
<array> | |
<string>public.plain-text</string> | |
<string>com.microsoft.waveform-audio</string> | |
<string>org.gnu.gnu-zip-archive</string> | |
</array> | |
</dict> | |
</array> | |
<key>CFBundleIdentifier</key> | |
<string>YOUR APPLICATION ID</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment