What is the difference between copy and retain for NSString?
copy
retain
NSString
- (void)setString:(NSString*)newString { string = [ne
retain : It is done on the created object, and it just increase the reference count.
copy -- It creates a new object and when new object is created retain count will be 1.
Hope This Help for U...:)