Re: File types...
Re: File types...
- Subject: Re: File types...
- From: Randy Widell <email@hidden>
- Date: Tue, 27 Mar 2012 10:49:13 -0700
Eh. Looks like you're right. I reconfigured the Info.plist with public.database as Item 0 and public.data as Item 1 and it worked this time around. Originally, I added public.data, cleaned and rebuilt, and the files were still showing as gray in the open panel. But, I cannot reproduce that again. So, all is right with the world, I guess.
On Mar 27, 2012, at 9:13 AM, Randy Widell wrote:
> Yup, that was it. public.data has to be the first item in the array. I tried:
>
> * public.database (item 0) only: fail.
> * public.database (item 0), public.data (item 1): fail.
> * no conformance declarations: fail.
> * public.data (item 0), public.database (item 1): success.
> * public.data (item 0) only: success.
>
> Thanks so much. That was driving me crazy.
>
> Randy Widell
>
>
> On Mar 27, 2012, at 7:50 AM, Kyle Sluder wrote:
>
>> On Mar 26, 2012, at 11:14 PM, Randy Widell <email@hidden> wrote:
>>
>>> It is a custom UTI, so, of course, I export it:
>>>
>>> <key>UTExportedTypeDeclarations</key>
>>> <array>
>>> <dict>
>>> <key>UTTypeConformsTo</key>
>>> <array>
>>> <string>public.database</string>
>>> </array>
>>
>> Not sure this will fix your problem, but you haven't declared conformance to a physical UTI. public.database is purely a functional UTI and does not conform to any physical UTIs.
>>
>> If your documents are flat files, you need to add public.data to this array; if your documents are packages, you need to add com.apple.package.
>>
>> See: http://developer.apple.com/library/mac/DOCUMENTATION/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html
>>
>> --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