1
votes

Possible Duplicate:
Atomic vs nonatomic properties

I am getting issues (errors) if I use @property(atomic,retain)NSString *myString like Expected a property attribute before "atomic".

I studied the difference between atomic and nonatomic from Stack Overflow question What's the difference between the atomic and nonatomic attributes?.

Where do I use atomic and nonatomic?

1

1 Answers

8
votes

Note that you cannot use the attribute atomic. There is either non-atomic or none (atomic is the default case). So you are looking for @property(retain) NSString *myString;.