Subclassing Cocoa means no subclass ivars in some cases?

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-06-03T10:49:41Z Indexed on 2010/06/03 10:54 UTC
Read the original article Hit count: 136

Filed under:

The question is generally coming from self = [super init].

In case if I'm subclassing NSSomething and in my init's method self = [super init] returns object of different class, does it mean I am not able to have my very own ivars in my subclass, just because self will be pointing to different class?

Appreciate if you could bring some examples if my statement is wrong.

© Stack Overflow or respective owner

Related posts about objective-c