• 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
Getting a bundle to load symbols from the main app bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a bundle to load symbols from the main app bundle


  • Subject: Getting a bundle to load symbols from the main app bundle
  • From: Damien Sorresso <email@hidden>
  • Date: Fri, 7 Jul 2006 21:24:05 -0500

I've got a program that dynamically loads bundles, and I'd like those bundles to load a symbol from the main application bundle. Specifically, I'd like them to get a hold of the value of a global debug variable.

I'm currently doing this from the loadable bundle.

__debug_level = (int *)CFBundleGetDataPointerForName(mainBundle, CFSTR ("__debug_level"));

But `CFBundleGetDataPointerForName()' returns NULL in this case. When I do this call from the main application bundle, I get garbage. So I'm wondering if my main app's symbols aren't getting exported properly.
--


Damien Sorresso

"Never ask a man what computer he uses. If it's a Mac, he'll tell you. If it's not, why embarrass him?"
-Tom Clancy



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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting a bundle to load symbols from the main app bundle
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Objective-C and it's future
  • Next by Date: iPhoto integration?
  • Previous by thread: Are there any meetings around the New England area ?
  • Next by thread: Re: Getting a bundle to load symbols from the main app bundle
  • Index(es):
    • Date
    • Thread