• 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
My app not in services menu, but appears to be registered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My app not in services menu, but appears to be registered


  • Subject: My app not in services menu, but appears to be registered
  • From: John Velman <email@hidden>
  • Date: Fri, 11 Dec 2009 11:06:38 -0800
  • Mail-followup-to: John Velman <email@hidden>, Cocoa Development <email@hidden>

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@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

  • Follow-Ups:
    • Re: My app not in services menu, but appears to be registered
      • From: John Velman <email@hidden>
  • Prev by Date: Re: NSProgress Indicator
  • Next by Date: Relation Between a View's Bounds and its CTM
  • Previous by thread: Re: NSProgress Indicator
  • Next by thread: Re: My app not in services menu, but appears to be registered
  • Index(es):
    • Date
    • Thread