Anil Giri wrote:I am wondering what should we be using, retain or copy with class members? Is copy operation heavier than retain?
Copy is used generally for NSString. If the string is Mutable then it will be copied else it will be retained. Copy is a Call-By-Reference whereas Retain is Call-By-Value.
For both the case object's retain count will be increment by 1.