NSString property: copy or retain?
For attributes whose type is an immutable value class that conforms to the NSCopying protocol, you almost always should specify copy in your @property declaration. Specifying retain is something you almost never want in such a situation. Here’s why you want to do that: NSMutableString *someName = [NSMutableString stringWithString:@”Chris”]; Person *p = [[[Person alloc] init] … Read more