FROM : Damien Sorresso
DATE : Sat Jul 08 04:24:05 2006
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
DATE : Sat Jul 08 04:24:05 2006
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
| Related mails | Author | Date |
|---|---|---|
| Damien Sorresso | Jul 8, 04:24 | |
| Michael Ash | Jul 8, 17:53 | |
| Damien Sorresso | Jul 10, 20:11 |






Cocoa mail archive

