Re: Testing out services
Fritz Anderson <[email protected]> Wed, 9 Feb 2011 10:18:31 -0600
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On 9 Feb 2011, at 9:35 AM, Christiaan Hofman wrote: > I am trying to test out some services provided by my app. However, I don't get the system to update the services for me to test it out, the services don't change when I change the Services items in the Info.plist of my app. I have tried moving the app to /Applications, . Running the pbs CLT still loads the old services, even reporting an old version of my app in a completely different location, where it does not even reside anymore (using the -dump_pboard option). So how can I really force the Services to be updated? And is it possible to use a particular instance of my app bundle (different from the installed one) to be loaded? I don't have enough experience to do more than say the next thing I'd explore… As a matter of eliminating the obvious thing: You've deleted all copies of the application (even ones in your build directory) other than the one under test? And run the app to make sure it's tried to register itself? There are a number of system services (AppleScript is one that has particularly bitten me) that aggressively cache application information, and it is impossible to guarantee they'll use a particular instance of an app without deleting or zipping all the other copies. Have you tried NSUpdateDynamicServices()? pbs is supposed to do the same thing, but lots of things are supposed to do lots of things. What version of the OS are you testing with, by the way? — F