On Jan 14, 2009, at 8:56 AM, an0...@gmail.com wrote:

My app provides a System Service, which works well if it is running when the request arrives; however, if the request rises and my app has not yet launched, the Service is failed to be served,
even though my app can be launched normally by the Service request.

Here is the corresponding Console log message:
PM Safari[368] Application XXX never opened its Services port before the timeout.

But I'm sure that my app has been ready before the timeout which is the default 30s, since I register the Service provider in my applicationDidFinishLaunching: (NSNotification *) after all the preparation work is done, and the time needed to get to that point is no more than 15s.

I can't figure out what is missed after perusing the System Service section of Dev Doc.

Any hint will be appreciated, and any further info will be supplemented if needed.

Without seeing some code, I can only offer a couple general ideas:

1. Are you sure that applicationDidFinishLaunching:(NSNotification *) is being called? If you've got your app delegate wired up wrong, then you'd never receive this notification. 2. Are you passing the right object to -[NSApplication setServicesProvider:]? 3. Do you implement the proper service method? A typo could be preventing the service from being found.

HTH
-- Kevin

Kevin Gessner
http://kevingessner.com
ke...@kevingessner.com






_______________________________________________

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