Quantcast
Channel: Evidence of atomic / nonatomic in Objective-C - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Rob Napier for Evidence of atomic / nonatomic in Objective-C

From what I understand, I could have Bob Frost or Jack Sponge output in my log, since I declared my property as nonatomic. But that didn't happened. I don't understand why. Am I missing something or...

View Article


Answer by jtbandes for Evidence of atomic / nonatomic in Objective-C

A property being atomic means that all actions performed by a read, and all actions performed by a write, are done atomically. (This is completely independent of consistency between two separate...

View Article

Answer by Duncan C for Evidence of atomic / nonatomic in Objective-C

Having non-atomic properties makes the possibility of partial writes possible, but by no means certain.In your Person class the only way you are setting first and last names is in the init method, and...

View Article

Evidence of atomic / nonatomic in Objective-C

After reading Apple's documentation, I try to put in evidence atomicity or non-atomicity of a property in Objective-C. To do this I create a class Person which has first and last...

View Article
Browsing all 4 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>