Re: CFBundleGetFunctionPointerForName
Re: CFBundleGetFunctionPointerForName
- Subject: Re: CFBundleGetFunctionPointerForName
- From: Kevin Packard <email@hidden>
- Date: Fri, 20 Apr 2007 01:26:59 -0400
On Apr 19, 2007, at 2:34 AM, Peter O'Gorman wrote:
On Apr 18, 2007, at 10:31 PM, Kevin Packard wrote:
What is the recommended way to link to application function from
within a framework?
The BUNDLE_LOADER linking option didn't resolve the undefined
symbol. I also tried to manually resolve the symbol with
CFBundleGetFunctionPointerForName() -- no luck.
Something tells me I haven't set up my application's symbols
correctly.
You should ensure that you are not stripping the symbols you need
from the application (see the man page for nm(1), nm -m /path/to/
application should give you all the information you need). The
symbols that your bundle needs must be globally visible.
Hope this helps,
Thanks for the reply. My plugin is now linking with my application
symbols.
I no longer need CFBundleGetFunctionPointerForName(), but I'm still
curious about why it returns NULL when the app is run from XCode.
When I *debug* the app from XCode, or launch from Finder, or launch
from the Terminal, CFBundleGetFunctionPointerForName() works as
expected. Any idea why?
thanks,
--
Kevin Packard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden