Defined in:Increments an object's reference count.
Retain function increments the reference count. For each call to
Retain made for a particular shared object, a balancing call to
Shared::Release decrements the reference count without destroying the object. The return value of the
Retain function is the new reference count.