You are not allowed to actually have setters/properties on a category...
A trick is using associative objects , like:
... -(void) setPipe:(id<NSObject>)pipe { // use better key... objc_setAssociatedObject(self, @"AGpipeCatKey", pipe, OBJC_ASSOCIATION_ASSIGN); } -(id<NSObject>)pipe { return objc_getAssociatedObject(self, @"AGpipeCatKey"); // use better key... }
You are not allowed to actually have setters/properties on a category...
A trick is using associative objects , like: