Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spotlight "UTI File Types"?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.