Properties and accessors in Objective-C

Without the self. notation, the instance variable is modified directly. With it, the property setter is called (and since you made it a retain property, the new pointer that it’s being set to will be sent a retain message).

See Apple’s documentation on declaring and accessing properties.

Leave a Comment