[launchd-dev] Not calling SMJobBless if not needed?

Quinn "The Eskimo!" eskimo1 at apple.com
Mon Nov 22 03:13:39 PST 2010


On 17 Nov 2010, at 15:01, Richard Brown wrote:

> The method I use is to get the version number of the installed tool
> and compare it against the version in the app bundle.

The way that I recommend you do this is to ask the tool for its version via whatever IPC mechanism you use to talk to the tool in the first place.  This avoids you having to code knowledge of the file system layout into your client.  BetterAuthorizationSample shows the basic idea (search for kSampleGetVersionResponse), although it doesn't use the resulting info to drive an update.

<http://developer.apple.com/library/mac/#samplecode/BetterAuthorizationSample>

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware




More information about the launchd-dev mailing list