Re: Weak linking framework with bundle ?
Re: Weak linking framework with bundle ?
- Subject: Re: Weak linking framework with bundle ?
- From: Mike Richmond <email@hidden>
- Date: Mon, 8 Nov 2004 09:33:44 +0000
At 12:27 pm -0700 5/11/04, Rosyna wrote:
I meant to ask... If you completely delete the framework, does the
bundle/application still compile and link?
No. Doing that reports a failure to find the framework.
If it does, it isn't weak linking the framework. The way you say
you use NSAddressOfSymbol() sounds like you aren't actually weak
linking at all.
I was only using NSAddressOfSymbol() to try to determine more what is
happening.
It sounds like you are dynamically loading the bundle and
dynamically loading the symbols.
No I'm not. Sorry if I've given that impression. FWIW 'otool -l'
confirms that the framework is weak linked: showing cmd
LC_LOAD_WEAK_DYLIB.
Weak linking doesn't require the use of NSAddressOfSymbol() or
NSIsSymbolNameDefined().
I know.
Say you have a function void Bob(void) doing a test for if
(Bob!=NULL) would determine if it is available with weak linking. No
getting the address or seeing it if is defined.
That's exactly what I am doing. Bob is NULL, suggesting that the
framework is unavailable. But the framework is available, and
NSAddressOfSymbol() finds Bob, it's just the weak linking bit is
failing to link.
I'm pretty sure now that this is a dyld bug.
Mike Richmond
_______________________________________________
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