Suppose I have a class like this:
@interface SomeClass : NSObject<NSCopying> {
SomeOtherClass *obj;
}
In the definition of copyWithZone:, I do this:
SomeClass *someCopy = [[SomeClass allocWithZone:zone] init];
So my question is, if I want to make a copy of obj, which of these is correct/recommended?
option A:
objCopy = [obj copyWithZone:zone];
option B:
objCopy = [obj copy];