Cocoa Bundle and weak-linking
Cocoa Bundle and weak-linking
- Subject: Cocoa Bundle and weak-linking
- From: Jerome Foucher <email@hidden>
- Date: Fri, 28 Jan 2005 17:24:06 +0100
Hi list,
I'm running into a strange problem:
My app is carbon-based, but uses Cocoa bundles to display some windows.
In one of these Cocoa windows, I have implemented s search field. But because my app is 10.2 compatible, the search field is created at runtime. I check if the OS version : if it's 10.3 I create a NSSearchField and if it's 10.2, a NSTextField
But that doesn't seem to be sufficient, as when loading the Cocoa bundle on 10.2, the app crashes telling the bundle tried to create a NSSearchField ! It just looks like the bundle was not weak-linked....
So, do I have to do anything special in XCode or in my code so that the bundle is "weak-linked" ?
Thanks,
Jérome
_______________________________________________
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