Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
What does nonatomic and retain do in Objective-C?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="prateek.chaubey" data-source="post: 1292138" data-attributes="member: 192954"><p>Hello every1</p><p></p><p>In objective-c when we apply synthesize accessor method or when we write property, we also use 2 terms, they are: nonatomic and retain. the syntax is given below:</p><p></p><p>@property(nonatomic, retain)</p><p></p><p>I would like to know what exactly nonatomic and retain do.</p><p>Please guide</p><p>reply soon..</p><p></p><p>Thanks</p><p>Prateek</p></blockquote><p></p>
[QUOTE="prateek.chaubey, post: 1292138, member: 192954"] Hello every1 In objective-c when we apply synthesize accessor method or when we write property, we also use 2 terms, they are: nonatomic and retain. the syntax is given below: @property(nonatomic, retain) I would like to know what exactly nonatomic and retain do. Please guide reply soon.. Thanks Prateek [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
What does nonatomic and retain do in Objective-C?
Top