problems dynamically specifying services for my application
problems dynamically specifying services for my application
- Subject: problems dynamically specifying services for my application
- From: Mark Munz <email@hidden>
- Date: Fri, 14 May 2004 10:35:16 -0600
I'm trying to dynamically set up services for my background application.
I've setup ~/Library/Services/myService.service folder with an
info.plist
When my app launches, it calls [NSApp setServiceProvider:myObj] where
myObj is a myServicePort object (sublcass of NSObject)
btw.. my background application lives inside another application bundle
(ie. it's not in the Services folder).
The services show up, but when I select the service, I get the
following error:
LSOpenFromURLSpec() returned -1 for application
/Volumes/Files/me/Library/Services/myService.service/myServicePort path
(null).
I've tried setting various keys in the info.plist. Everything from just
listing the Services array to adding NSPrincipleClass -> NSServices,
CFBundleIdentifier, etc I keep getting the same error.
My understanding is that dynamic services were flaky early on (10.0,
partially fixed in 10.1 and finally fixed in 10.2), but that they
should work now. Unfortunately, there's very little documentation on
what keys are needed for it to work correctly.
Any ideas on how to get this to work?
I could resort to the old way (write an application that passes the
service request on) and dynamically change it's info.plist -- but that
has always seemed a hack, especially since dynamic service support is
supposed to be there.
Thanks.
Mark Munz
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.