objc looks for Tiger class which should be weak-linked
objc looks for Tiger class which should be weak-linked
- Subject: objc looks for Tiger class which should be weak-linked
- From: Jerry Krinock <email@hidden>
- Date: Tue, 21 Aug 2007 21:23:52 -0700
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
_______________________________________________
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