Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App (iOS7) Creating a Data Collection @property and NSArray

--------- tells the compiler that you are not using multi-threading for your property.

i have written atomic for this because non atomic property can be used as multi threading

it is giving me the wrong when i gave atomic, please clarify me on this

3 Answers

Stone Preston
Stone Preston
42,016 Points

nonatomic tells the compiler you AREN'T using multi threading, atomic tells it you ARE using mulithreading

Here is a SO post that might help

clarified preston, i thought in the reverse way. Thanks.

We always define the atomic property when we are working in a multithreaded environment and and nonatomic when we are not.....

nonatomic tells the compiler that we are not using multi-threading.