iPhone Objective-C/Plain C Memory Management

Posted by toc777 on Stack Overflow See other posts from Stack Overflow or by toc777
Published on 2010-04-08T23:52:31Z Indexed on 2010/04/09 0:03 UTC
Read the original article Hit count: 377

Filed under:

Hi everyone,

I understand Objective-C memory management but I'm using Core Graphics functionality such as CGRect, CGPoint, CGImageRef etc.. which is written in plain C.

My question is how do i manage this memory or is it already handled for me? According to the Apple documentation if an Apple Objective-C function doesn't have copy, new or create in it the returned object is managed for you using autorealease. Is this true for the Core Graphics stuff also? (Well i guess it wont be using autorealease but maybe something similar?)

Thanks for taking the time to read this.

© Stack Overflow or respective owner

Related posts about objective-c