• 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: Bundle identifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle identifiers


  • Subject: Re: Bundle identifiers
  • From: Charles Srstka <email@hidden>
  • Date: Sat, 11 May 2002 14:57:08 -0500

I've wondered about this for some time too.

CFBundleGetBundleWithIdentifier only works on bundles that are currently loaded. Just to get the application associated with some bundle, I'm guessing you'd have to get it out of the LS files. Unfortunately, the format seems to be closed, and I cannot find any API to do what we want...

On Saturday, May 11, 2002, at 02:51 AM, Yves Peneveyre wrote:

Hello all !

I would like to launch an application with its bundle identifier.
Or, at least, I would like to know where is the application corresponding to
a bundle identifier.

I tried to use the Core Foundation but it does not work.
For example, I tried the following code :

CFBundleRef myBundle;
CFURLRef myRef;

myBundle = CFBundleGetBundleWithIdentifier(CFSTR("com.apple.calculator"));
myRef = CFBundleCopyBundleURL(myBundle);

In this code, CFBundleGetBundleWithIdentifier return a null value.
Why ?
And, finally, does it exist a way to do that with Cocoa ?


Thank you very much for your help.

Best Regards

Yves Peneveyre

----------------------------------------------------------------
Yves Peneveyre direct line : ++41 21 802 5754
Software Engineer fax : ++41 21 802 5751
LooKware development Ltd phone : ++41 21 802 5750
6B, ch du Trisi email: email@hidden
CH - 1028 Priverenges web: http://www.lookware.ch
----------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Bundle identifiers - solution!
      • From: Charles Srstka <email@hidden>
References: 
 >Bundle identifiers (From: "Yves Peneveyre" <email@hidden>)

  • Prev by Date: Re: OT: Lincense in Disc Image
  • Next by Date: Fullscreen Window
  • Previous by thread: Bundle identifiers
  • Next by thread: Re: Bundle identifiers - solution!
  • Index(es):
    • Date
    • Thread