If you read my post, you'll see that I am absolutely NOT indicating that they are always equivalent. The example provided was for a primative ivar that had it's @property option set to readwrite.
[edit]
Again, you will want to use the self prefix when you want to SET a value for an object variable who's @property declaration indicated extra memory notations ( retain / copy ). In other circumstances it's syntactical fluff as far as I'm aware.
It's true that prefixing with self calls the setter method. But the point is that in cases where no retain/copy/release is being performed in the setter ( IE when you specify assign, readwrite, etc for nonatomic properties ) that the two are functionally performing the same thing behind the scenes.
=)
Last edited by exorcyze; 05-06-2009 at 10:44 AM.
|