What is the difference between atomic
and nonatomic
properties, and what does it have to do with retaining it?
I know what @property(retain) is, defined in this website: The @property is an Objective-C directive which declares the property. The "retain" in the parenthesis specifies that the setter should retain the input value, and the rest of the line simply specifies the type and the name of the property.
So @property(retain)
does what was stated above, but how does nonatomic/atomic function with the retain property?
@property(nonatomic, retain)
@property(atomic, retain)