Tuesday, 17 September 2013

Does copy also transfers the retain counts?

Does copy also transfers the retain counts?

I am new to objectiveC. Suppose I have an object NSString (or perhaps
another object) with retain count 5 when I call copy on its pointer I get
a new cloned object, does this new object has retain count of its original
object ?

No comments:

Post a Comment