Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.