robrix / RXConcreteProtocol

Mix-ins for Objective-C
BSD 3-Clause "New" or "Revised" License
25 stars 1 forks source link

Test whether extension picks up protocols which the class is declared to conform to in a category #3

Open robrix opened 13 years ago

robrix commented 13 years ago

e.g.:

@interface Fisher : RXConcreteProtocol
@end

@protocol Fishing
-(void)catchFish:(id)aFish;
@end

@interface Fisher (Fishing) <Fishing>
@end

In this case, using extendClass: should extend the target class with Fisher’s implementation of -catchFish:. Does it?