Quote:
Originally Posted by benoitr007
Even for non-object instance variables?
|
Memory problems, no. Do I use them, yes.
My goal is consistency. I don't want to be in a mode of "well, this IS an object, so I'll use the accessor method, but this ISN'T an object, so I won't." Too easy to screw up, one way or another. By using @properties for everything, you do the same thing each time regardless of type. And if your int suddenly becomes an NSNumber, the impact of that change is minimized.
It also helps to distinguish between local variables and instance variables. I don't use instance variables, so everything global will be a [self whatever]. If I see someVariableName, I know instantly that it is local.