I'm at my wits end trying to add a service to my app, with no luck
getting it into the services menu of anything.

It appears to have the right info in both the lsregister dump, and the 
~/Library/Preferences/pbs. ... .plist file.  (I've included these below).

Could it be that something is wrong with my launch services or pasteboard
services?,  or is it still something I'm missing with my application?
(I've read so many examples and documents I'm getting a little punch
drunk).

Is there a way to debug this other than simply going over code and
documents over and over?

My app services implementation is based on the example in iSpend, but
without making a category on MyDocument.

Here are relevant parts (I think) of the lsregister dump output, followed by the
appropriate section from pbs. ... .plist:

lsregister:
--------------------------------------------------------------------------------
bundle  id:            166192
        path:          /Users/jr/Applications/QlMemo.app
        name:          QlMemo
        identifier:    com.johnvelman.QlMemo (0x80070dbe)
        canonical id:  com.johnvelman.qlmemo (0x80066a53)
        version:       1
        mod date:      12/11/2009 10:16:01
        reg date:      12/11/2009 10:19:29
        type code:     'APPL'
        creator code:  'QlMm'
        sys version:   0
        flags:         
        item flags:    container  package  application  extension-hidden  
native-app  services  i386  
        icon:          
        executable:    Contents/MacOS/QlMemo
        inode:         7421410
        exec inode:    7421426
        container id:  32
        library:       
        library items:
        --------------------------------------------------------
        claim   id:            82460
                name:          QlMemo 
                rank:          Default
                roles:         Editor  
                flags:         
                icon:          
                bindings:      .qlm, 'qlmM'
        --------------------------------------------------------
        service id:            6540
                menu:          QlMemo
                key:           
                port:          QlMemo
                message:       importData
                user data:     
                timeout:       -1
                send types:    "NSStringPasteboardType"
                return types:  
--------------------------------------------------------------------------------

pbs. ... .plist:

<dict>
        <key>NSBundleIdentifier</key>
        <string>com.johnvelman.QlMemo</string>
        <key>NSBundlePath</key>
        <string>/Users/jr/Applications/QlMemo.app</string>
        <key>NSExecutablePath</key>
        <string>/Users/jr/Applications/QlMemo.app/Contents/MacOS/QlMemo</string>
        <key>NSMenuItem</key>
        <dict>
                <key>default</key>
                <string>QlMemo</string>
        </dict>
        <key>NSMessage</key>
        <string>importData</string>
        <key>NSPortName</key>
        <string>QlMemo</string>
        <key>NSSendTypes</key>
        <array>
                <string>NSStringPasteboardType</string>
        </array>
</dict>

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to