Copying Objects(Chapter 17 of Programming in Objective-C 2.0)
时间:2010-10-25 来源:Ray Z
using them if you know this code will only ever be running in a single thread. If nonatomic is not specified or atomic is specified instead (which is the default), then your instance variable will be protected with a mutex lock. In addition, the synthesized getter method will retain and autorelease the instance variable before its value is returned.
相关阅读 更多 +