Re: Getting a bundles path from the ID
Re: Getting a bundles path from the ID
- Subject: Re: Getting a bundles path from the ID
- From: Dave DeLong <email@hidden>
- Date: Thu, 09 Oct 2008 14:40:41 -0600
Yep, just use:
- (NSString *)absolutePathForAppBundleWithIdentifier:(NSString
*)bundleIdentifier
That is part of NSWorkspace and is used like:
NSString * pathForiChat = [[NSWorkspace sharedWorkspace]
absolutePathForAppBundleWithIdentifier:@"com.apple.iChat"];
HTH,
Dave
On Oct 9, 2008, at 2:33 PM, Ken Andrews wrote:
I have a need to find a bundle’s path so that I can get information
about
the bundle but the only input that I have is the bundle ID.
Is there some efficient mechanism that I can use to achieve this?
Right now the only thing that I can think of is to search through
all the
likely paths for apps and load each one to see if the bundle ID
matches but
that seems like it would be both very slow and very unreliable.
Thanks,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden