↧
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 ArticleAnswer 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 ArticleAnswer 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 ArticleEvidence 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
More Pages to Explore .....