objective c - When should I add self before an object? is it save to always add it for view level objects? -
yesterday found needed add self object causing problem.
i've been adding self few other objects today, compiles , seems work fine when do. i'm wondering if maybe shouldn't adding self ?
if have ivar backing property myfoo
, self.myfoor
use property, whereas myfoo
directly not.
example property:
@property(nonatomic, retain) myclass myfoo;
self.myfoo = temp;
retain temp
myfoo = temp;
not retain temp
Comments
Post a Comment