objective c - memory managment

Posted by Amir on Stack Overflow See other posts from Stack Overflow or by Amir
Published on 2010-06-12T10:34:46Z Indexed on 2010/06/12 10:42 UTC
Read the original article Hit count: 319

Filed under:

lets say I have aclass

@interface Foo :NSobject  
{  
  NSstring *a;  
  NSDate *b;  
}  
Foo *temp;  

my question is: when i use [temp retain] does the counter of the members also retain? lets say that i got ref of the class from some method and i want to retain the class do i need to retain each member?

© Stack Overflow or respective owner

Related posts about objective-c