Re: Modifying dyld behavior for framework
Re: Modifying dyld behavior for framework
- Subject: Re: Modifying dyld behavior for framework
- From: Stephan Burlot <email@hidden>
- Date: Tue, 10 Dec 2002 01:13:28 +0100
I answer to myself:
I load the framework at runtime using
NSBundle *myBundle=[NSBundle bundleWithPath:[NSString
stringWithFormat:@"%@/%@",[thisBundle
privateFrameworksPath],@"Yada.framework"]];
Now, how can I detect that the framework hasnt already been loaded, since it
doesnt declare any class? If it did, I could have used NSClassFromString?
On 9.12.2002 23:57, Stephan Burlot <email@hidden> wrote:
>
Hi,
>
>
I'm trying to link my app with a Framework and include this framework in my
>
app. (I dont have access to the source of this framework)
>
>
If I start my app and the Framework is NOT in the /Library/Frameworks
>
folder, my app crashes miserably with a dyld error.
>
>
otool -L gives a static path for the Framework, although the Framework is
>
copied in the app bundle.
>
>
Question 1: can I change the behavior of a framework, even if it has not
>
been compiled with the @executable_path=../Frameworks?
>
I've tried to change DYLD_FRAMEWORK_PATH and launch with the terminal with
>
no success.
>
>
Question 2: how can I detect at runtime if the framework is in
>
/Library/Frameworks or (~/Library/Frameworks) and display a meaningful
>
message before dying?
>
>
Any hints or doc pointers would be great!
>
>
Thanks,
>
Stephan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.