What should the retainCount be when returning an object in Objective-C?

Posted by Yakattak on Stack Overflow See other posts from Stack Overflow or by Yakattak
Published on 2010-03-13T23:44:07Z Indexed on 2010/03/13 23:45 UTC
Read the original article Hit count: 257

See title. To be more specific, I am trying to return the mutableCopy of an object, however it's returned with a retainCount of 1 and I am worrying that it will leak.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about memory-management