@@ -27,13 +27,13 @@ return [[[self alloc] initWithFirstObject: firstObject secondObject: secondObject thirdObject: thirdObject] autorelease]; } -- initWithFirstObject: (id)firstObject - secondObject: (id)secondObject - thirdObject: (id)thirdObject +- (instancetype)initWithFirstObject: (id)firstObject + secondObject: (id)secondObject + thirdObject: (id)thirdObject { self = [super init]; @try { _firstObject = [firstObject retain]; @@ -108,16 +108,16 @@ OF_HASH_FINALIZE(hash); return hash; } -- copy +- (id)copy { return [self retain]; } -- mutableCopy +- (id)mutableCopy { return [[OFMutableTriple alloc] initWithFirstObject: _firstObject secondObject: _secondObject thirdObject: _thirdObject]; }