What is the difference between copy and retain for NSString?
copy
retain
NSString
- (void)setString:(NSString*)newString { string = [ne
retain attribute is specified such that it can retain the another memory i.e it can be made to point to another address also copy First copies the address and then retains it.