Getting a bundle to load symbols from the main app bundle
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