objective C NSString retain

Posted by Amarsh on Stack Overflow See other posts from Stack Overflow or by Amarsh
Published on 2010-04-05T00:13:39Z Indexed on 2010/04/05 0:33 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

If I create a String with [NSString StringWithFormat], do I have to [retain] it? My understanding is that convenience methods add the objects to autorelease pool. If that is the case, shouldnt we retain the object so that it doesnt get drained with pool at the end of the event loop?

© Stack Overflow or respective owner

Related posts about objective

Related posts about c