Re: objc looks for Tiger class which should be weak-linked
Re: objc looks for Tiger class which should be weak-linked
- Subject: Re: objc looks for Tiger class which should be weak-linked
- From: Chris Suter <email@hidden>
- Date: Wed, 22 Aug 2007 15:25:56 +1000
On 22/08/2007, at 2:23 PM, Jerry Krinock wrote:
Hi,
I just designed some CoreData (Tiger) stuff into my app, but need
it to run (without these new features) in Panther. At first I was
getting an "undefined reference" from dyld but fixed that after
reading tn2002.2064 and declaring an extern with a ((weak_import))
attribute. Amazing syntax, but it worked.
Now, I seem to get by dyld; three bounces in the Dock, Whoopee!.
But then, before any of my code runs (NSLog in -[MyAppController
init] doesn't log), it crashes with this message in system.log:
objc: failed
objc_getClass(NSManagedObject) for SRBookmark->super_class
Indeed, SRBookmark is a subclass of NSManagedObject, which is not
available in Mac OS 10.3. This class is not instantiated during
launch time (although it does contain "+" factory methods).
How do I tell ojbc to ignore SRBookmark and its super? (The
weak_import attribute syntax I used earlier doesn't seem to work on
classes.)
Thanks,
Jerry Krinock
Perhaps you could stick all classes that depend upon 10.4 in a bundle
and load the bundle only on Tiger.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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