• 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
Spotlight "UTI File Types"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spotlight "UTI File Types"?


  • Subject: Spotlight "UTI File Types"?
  • From: Colin Cornaby <email@hidden>
  • Date: Tue, 3 May 2005 12:13:32 -0700

I'm trying to build a Spotlight plugin, but I'm having trouble. I think my code is ok, it just seems to be this stupid UTI File Type thats messing me up. Going off example plists I created the following plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>MDImporter</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>com.carpestellarem.protoys.skin</string>
            </array>
        </dict>
    </array>
    <key>CFBundleExecutable</key>
    <string>SkinSearch</string>
    <key>CFBundleIconFile</key>
    <string></string>
    <key>CFBundleIdentifier</key>
    <string>com.carpestellarem.skinsearch</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>CFPlugInDynamicRegisterFunction</key>
    <string></string>
    <key>CFPlugInDynamicRegistration</key>
    <string>NO</string>
    <key>CFPlugInFactories</key>
    <dict>
        <key>1D77D597-2116-453C-896A-A991D1181A14</key>
        <string>MetadataImporterPluginFactory</string>
    </dict>
    <key>CFPlugInTypes</key>
    <dict>
        <key>8B08C4BF-415B-11D8-B3F9-0003936726FC</key>
        <array>
            <string>1D77D597-2116-453C-896A-A991D1181A14</string>
        </array>
    </dict>
    <key>CFPlugInUnloadFunction</key>
    <string></string>
    <key>UTImportedTypeDeclarations</key>
    <array>
        <dict>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.data</string>
            </array>
            <key>UTTypeDescription</key>
            <string>Desktop Scheme</string>
            <key>UTTypeIdentifier</key>
            <string>com.carpestellarem.protoys.skin</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>plubic.filename-extension</key>
                <array>
                    <string>skin</string>
                </array>
            </dict>
        </dict>
    </array>
</dict>
</plist>

I index this from the command line with a debug level of 4. It knows my metadata importer is there, but the end index doesn't contain what my code should add. Therefore I'm thinking that it's not correctly picking up on that my plugin should be indexing the file I'm giving it.

Whats up with this UTI File Type thing?

---------------------------

Colin Cornaby - http://gomac.blogspot.com/

Carpe Stellarem - Lead Programmer, ProToys - http://carpestellarem.com

Macintosh Specialist - University of Portland - htttp://up.edu


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Spotlight "UTI File Types"?
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: ditto in ObjC or C
  • Next by Date: Re: Spotlight -- Metadata importer vs file package containing rtfd files
  • Previous by thread: Open disk image with finder toolbar visible
  • Next by thread: Re: Spotlight "UTI File Types"?
  • Index(es):
    • Date
    • Thread