Currently, I can write a class as follows:
@interface Foo @property(assign) float bar; @end @implementation Foo - (void) someMethod { _bar = 4; } @end
Conveniently, I can leave the list of @synthesize templates, and if I get used to underscore notation, I get a good readable rule that everything with the name _foo is an instance variable. Can I use automatically generated instance variables? I mean, maybe they should be invisible even to the author of the class?
source share