Possible Duplicate:
Xcode property attributes (nonatomic , copy , strong , weak)
I want to know the Copy attribute working process with any example. Thanks
Possible Duplicate:
Xcode property attributes (nonatomic , copy , strong , weak)
I want to know the Copy attribute working process with any example. Thanks
copy - "Specifies that a copy of the object should be used for assignment. ... The previous value is sent a release message." Basically same as retain, but sending -copy rather than -retain.
The retain/copy concepts come from the reference-counted memory management system.
Essentially, when used with @synthesize directive (to synthesize the property accessors you would otherwise write - like -person or -setPerson:), it determines how memory is managed inside the setter.
check out this previous asked question's answer