• 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: Debugging NSService
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging NSService


  • Subject: Re: Debugging NSService
  • From: Peter Ammon <email@hidden>
  • Date: Thu, 25 Jun 2009 14:40:32 -0700

Hi Laurent,

There are a number of reasons why your Service may not appear in the menu. Off the top of my head:

1) Your send and receive types may not be handleable by anything in the app. In particular, NSFilenamesPboardType is not vended by NSTextView, so I would expect your Service to appear in the Finder, but not other places. Did you check in the Finder?

2) Your Info.plist may be malformed. On Leopard, I don't think there's any indication of this - it will just silently fail. plutil can check for syntax errors, but I don't think there's any way to look for e.g. a dictionary where there should be an array, on Leopard.

3) LaunchServices may be picking up a different version of your app than you expect. If multiple apps with the same bundle ID all try to vend Services, only one will win. Ensure there's no other copies of your app on the boot volume.

4) Your app may not have been found by LaunchServices at all. Launching it from the Finder will ensure it gets registered.

5) pbs may not have run. Logging out and back in should make it run again.

As Malcolm says, if you have access to the SnowLeopard seed, you'll find that Services easier to debug, with the 10.6 version of Services documentation describing debugging techniques.


On Jun 25, 2009, at 11:49 AM, Laurent Cerveau wrote:

Simply retrying to see if there could be any idea on this one as I still have trouble getting success

Thanks for the help

laurent


_______________________________________________

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: 
 >Debugging NSService (From: Laurent Cerveau <email@hidden>)
 >Re: Debugging NSService (From: Laurent Cerveau <email@hidden>)
 >Re: Debugging NSService (From: Laurent Cerveau <email@hidden>)

  • Prev by Date: Number of images in main bundle folder (iPhone)
  • Next by Date: Re: NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error
  • Previous by thread: Re: Debugging NSService
  • Next by thread: Re: Debugging NSService
  • Index(es):
    • Date
    • Thread