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 <bornagainsl...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to