I understand what read and write do when used as a properties but I'm confused with the rest.
- What is nonatomic and what is it used for?
- What is retain and what is it used for?
- Why is copy used? Wouldn't it be equivalent to "read" since read also returns the value of the variables?
- What is assign used for? Wouldn't it be equivalent to "write" since both set copies of the variable?
- Properties basically create getter and setter functions. Do they however create actual functions or do I just access the variable as in
[class variable]
? (instead of[class getVariable]
or[class setVariable:int variable]
. If I am just directly accessing the variable isn't this the equivalent of making the variable public?