Can Objective-C protocol be generic?
Following this tutorial, I'm basically looking for something like that:
@protocol ItemsStore<__covariant ObjectType> <NSObject>
-(NSArray <ObjectType> *)items;
@end
Which is a generic protocol for some ObjectType
that "implements" ("inherits") another protocol NSObject
As @rmaddy suggested, and as referred to this questions, it is NOT possible. Shame, moving to Swift then...