Re: UIDocument's fileType reports wrong UTI.
Re: UIDocument's fileType reports wrong UTI.
- Subject: Re: UIDocument's fileType reports wrong UTI.
- From: Half Activist <email@hidden>
- Date: Wed, 23 Oct 2013 17:41:16 +0200
Sorry, here is the exported type section.
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeDescription</key>
<string>Type A</string>
<key>UTTypeIdentifier</key>
<string>com.mycompany.typeA</string>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeDescription</key>
<string>typeB</string>
<key>UTTypeIdentifier</key>
<string>com.mycompany.typeB</string>
</dict>
</array>
As for the fake info, I don't know the exact extent of the secrecy i'm supposed to have concerning my work, therefore I replaced with typeA and typeB, which in any case changes the meaning of the it. I could have replaced with .png and .jpg and put some realistic UTI for them, would it appear fake? No? Yet it would have been as much.
On Oct 23, 2013, at 5:20 PM, Kyle Sluder <email@hidden> wrote:
>> On Oct 23, 2013, at 6:17 AM, Half Activist <email@hidden> wrote:
>>
>> Here's the Info.plist section
>>
>> <key>CFBundleDocumentTypes</key>
>> <array>
>> <dict>
>> <key>CFBundleTypeExtensions</key>
>> <array>
>> <string>typeA</string>
>> </array>
>> <key>CFBundleTypeIconFiles</key>
>> <array/>
>> <key>CFBundleTypeName</key>
>> <string>Document Type A</string>
>> <key>LSItemContentTypes</key>
>> <array>
>> <string>com.mycompany.typeA</string>
>> </array>
>> </dict>
>> <dict>
>> <key>CFBundleTypeExtensions</key>
>> <array>
>> <string>typeB</string>
>> </array>
>> <key>CFBundleTypeIconFiles</key>
>> <array/>
>> <key>CFBundleTypeName</key>
>> <string>Document Type B</string>
>> <key>LSItemContentTypes</key>
>> <array>
>> <string>com.mycompany.typeB</string>
>> </array>
>> </dict>
>> </array>
>
> 1. Fake info is not useful. Real info only.
>
> 2. You left out the most important part—your actual UTI declarations (UTExportedTypeDeclarations).
>
> --Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden