Re: Setting a document's icon and default app
Re: Setting a document's icon and default app
- Subject: Re: Setting a document's icon and default app
- From: Michael Domino <email@hidden>
- Date: Mon, 06 Jul 2009 09:19:17 -0400
- Thread-topic: Setting a document's icon and default app
Kyle,
I only have one UTI definition:
com.identityfinder.identityfinderenterpriseedition.idfvault
I followed the pattern:
com.<companyName>.<productName>.<documentExtension>
And it matches what I have for the file name extension. Is that correct?
Here's the entire plist:
<plist version="1.0">
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>idfvault</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idfvault.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/idfvault</string>
</array>
<key>CFBundleTypeName</key>
<string>Identity Finder File Vault</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
<string>IDFV</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.identityfinder.identityfinderenterpriseedition.idfvault</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
</array>
</plist>
On 7/2/09 12:27 PM, "Kyle Sluder" <email@hidden> wrote:
> On Thu, Jul 2, 2009 at 7:06 AM, Michael
> Domino<email@hidden> wrote:
>> I¹ve set up my app with a document type (see below), moved the app to
>> Applications, logged out, logged back in, created a document of this type,
>> but the setting the doc¹s icon and association with my app does not occur
>> automatically, only when I manually do Get Info and set it. What am I
>> missing here? Is there a function I should be calling to make this happen
>> when the file is created?
>
> Where are your UTI definitions?
>
> --Kyle Sluder
--
Michael Domino
email@hidden
_______________________________________________
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