Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
- Subject: Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 29 Jan 2009 15:18:59 -0700
On Jan 29, 2009, at 2:32 PM, Rick Hoge wrote:
-(id)initWithCoder:(NSCoder*)decoder {
self = [super initWithCoder:decoder]; // Returns instance of parent
class
return self;
}
which was returning an instance of the parent class and not the
subclass.
Then you've got something strange going on, because initializing the
superclass shouldn't be setting the object _to_ the superclass; that's
the responsibility of whoever allocated the class to set the class. So
either you're allocating the wrong class, or your superclass is doing
something unorthodox.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden