I have a problem registering image file types to my application. I tried adding the code below to my plist but nothing happens.
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Scary Bug Document</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
</array>
I noticed that I can register for other file types, such as text (changing the public.image
to public.text
) but it just won't work with images (the "Open In .." menu is not showing my app).
What could be causing this, and how could I fix it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…