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

Calling Carbon Bundle


  • Subject: Calling Carbon Bundle
  • From: "Anthony Cheung" <email@hidden>
  • Date: Mon, 31 Mar 2003 18:33:21 +0800

Dear all,

I have written an application in cocoa environment. I would like to call a
carbon bundle in my application. I have tried the following code

NSString *bundlePath;
NSURL *bundleURL = nil;

bundlePath = [tmpPath stringByAppendingPathComponent:@"MyCarbon.bundle"];
bundleURL = [NSURL fileURLWithPath:bundlePath];
cfBundle = CFBundleCreate(kCFAllocatorDefault, (CFURLRef)bundleURL);

where in the header file I declared

CFBundleRef cfBundle;

I have debugged that code but cfBundle is still nil. In addition, during the
debug, I have set a breakpoint in cfBundle = .. line, the debug pointer looks
like skip the that.

I have also tried to use CFPlugIn instead of CFBundle but the result is the
same.

Would you please tell me what I have done wrong.

Many thanks to your help.

Regards,

Anthony Cheung
---------------------------------------------
Analyst Programmer
Compose System Ltd.
Tel : (+852) 2811 4228
Fax : (+852) 2811 2263
www.compose.com.hk
_______________________________________________
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.

  • Prev by Date: Re: Non-working selector...
  • Next by Date: Re: Non-working selector...
  • Previous by thread: Re: Non-working selector...
  • Next by thread: CFBundleTypeExtensions for folders?
  • Index(es):
    • Date
    • Thread