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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to