Re: Debugging NSService
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