• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a bundles path from the ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Getting a bundles path from the ID (From: Ken Andrews <email@hidden>)

  • Prev by Date: Getting a bundles path from the ID
  • Next by Date: Re: rolling my own drawer-like child window
  • Previous by thread: Getting a bundles path from the ID
  • Next by thread: Re: NSUndoManager messing up Core Data database
  • Index(es):
    • Date
    • Thread