Hi Steve,

What appears in the Services menu is entirely determined by the NSServices portion of your Info.plist. If you post that to the list, we can look for any problems.

Your Service is launched on-demand when the user selects it from the menu. Services may be background only, but do not have to be.

On Tiger and earlier, there is no way to avoid needing to log in and out. On Leopard, you can use the function NSUpdateDynamicServices() to immediately scan for new Services. If you're just testing, a quick way to scan for new Services is to run pbs directly:

    /System/Library/CoreServices/pbs

However, pbs has no supported public interface and this will (has already) change, so don't include any reference to pbs in a script. NSUpdateDynamicServices() is the right way to programmatically refresh Services.

-Peter

On Feb 4, 2009, at 7:03 AM, Steve Cronin wrote:

Well, sheesh - that's embarrassing! There is no 'self' until init - I know that! Ugh.

However, that doesn't change my end result!

I never see anything on the Services menu nor anything from the NSLog statements shown below. (Even when I double-click on the .service file; after whcih I CAN see it in the process list in Activity monitor but still no log messages) Logging out and back in doesn't make my service name appear on the Service menu... This is on a 10.5.6 system using a Release build which has been placed in ~/Library/Services.

SO my basic questions still stand:
What event/conditions launches a .service which resides in ~/Library/ Services?
Should/must .service files be 'Background Only'?
Am I missing something basic in my setup here -
I have only a Info.plist and 1 .h (NSObject) and 2 . m files (main and MyService) and no .xib? Other than the 'wrapper' settings are there other compiler settings required for this setup? I have only 2 steps in my build process: 'Compile Source (2)' and 'Link Binary w/ Lib (1)' [Cocoa]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to