If I declare a public property as :
@property (retain) NSString * name;
Then how does the compiler implicitly implement this? I have read that the retain gains ownership over the instance variable "_name". I have also read that "retain" message increases the reference count of the object. So each time I call the setter for "name" property in the above example, will it increase the reference count?
So after this,
object.name=@"name1";
object.name=@"name2";
Will the reference count be 2?