• 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: including a cocoa bundle in a carbon app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including a cocoa bundle in a carbon app


  • Subject: Re: including a cocoa bundle in a carbon app
  • From: Jonathan deWerd <email@hidden>
  • Date: Mon, 11 Aug 2008 06:39:48 -0600

On Aug 10, 2008, at 5:39 PM, Uli Kusterer wrote:

On 10.08.2008, at 19:38, Bob Sabiston wrote:
I got my Cocoa bundle to compile on the Intel machine. It still doesn't load within my app, though. Is there something special I need to do to include it in my project? I just dragged it in on the left, amongst all the other types of files, and it gave me a menu of targets from which I selected the correct one. But the load is still failing. I'm using the function below, gotten from Apple's examples. Anyone know what could be the problem? CFBundleCreate is just setting bundlePtr to 0, I don't know why.


I've done stuff like that and it worked fine for me (heck, I've loaded CFM bundles into Mach-O apps). What template did you use as a basis for your bundle? You keep saying bundle, but the variable names mention frameworks. Now, there are different ways of building stuff like that. E.g. frameworks contain a path they expect to be loaded at (installation path setting), while bundles as they're used for plugins generally don't.

Did you perhaps mix those up? Alternately, are you perhaps mixing debug and release builds? Anything not 100% homogeneous in there?
A bundle shouldn't be dragged in on the left in XCode (a framework should). You *might* be getting a bundle already loaded error if that's the case. Try using loadAndReturnError: or CFBundleLoadExecutableAndReturnError (which seems like it doesn't just load executable bundles, aka applications?) to determine what the exact problem is.



Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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:
@gmail.com


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >including a cocoa bundle in a carbon app (From: Bob Sabiston <email@hidden>)
 >Re: including a cocoa bundle in a carbon app (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Non-NSObject object and garbage collection
  • Next by Date: Re: Using @selector()
  • Previous by thread: Re: including a cocoa bundle in a carbon app
  • Next by thread: Re: including a cocoa bundle in a carbon app
  • Index(es):
    • Date
    • Thread