• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting a document's icon and default app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Setting a document's icon and default app (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Subject: Re: How to share Cocoa classes?
  • Next by Date: Re: Subject: Re: How to share Cocoa classes?
  • Previous by thread: Re: Setting a document's icon and default app
  • Next by thread: NSTableView bug?
  • Index(es):
    • Date
    • Thread