On Oct 1, 2008, at 2:47 PM, Jerry Krinock wrote:


On 2008 Sep, 30, at 16:47, Charles Srstka wrote:

On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote:

Also, it seems to not find helper applications which are inside other applications' packages.

Is there any reason why you couldn't just search for the main application which contains the helper application inside its bundle and then just go from there to find the helper?

OK, do a programmatic Spotlight search for the main application, get the path and tack on /Contents/Resources/MyHelper.app. I hadn't thought about that but, yes, it that would overcome the package problem, Charles.

Actually, it'd be better to use +[NSBundle bundleWithPath:] and then use that to find MyHelper.app rather than just tacking on the subpath. You are correct that this would not work if users had excluded a directory from the search, though.

Charles
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to