This is a follow-up question of: Difference between self.ivar and ivar? :
self.name = @"hello";
I would like to know what is done inside the magical setter method. So the question is: could anyone please post the source code of the setter method? 😉 Thanks!
Without a property declaration (that is, you have manually declared the setter and getter methods), you’d typically implement them like this:
Atomic setters could look something like this: