objective c- property

Posted by Amir on Stack Overflow See other posts from Stack Overflow or by Amir
Published on 2010-06-07T13:18:24Z Indexed on 2010/06/07 14:02 UTC
Read the original article Hit count: 352

Filed under:
|

Hello all , I think i am missing somthing with property attributes. first i cant understand the different between retain and assign?

If i use assign does the property increase the retain counter by 1 to the setter and also to the getter, and i need to use release to both of them?

and how this work with readwrite or copy? from the view of retain count.

I am trying to understand when i need to use release after working with property(setter and getter)

@property (readwrite,assign) int iVar; what does assing do here??

what is the different between : @property (readwrite,assign) int iVar; to @property (readwrite,retain) int iVar; to @property (readwrite) int iVar;

many thanks...

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about property