B BadWolf13 macrumors 6502 Original poster Dec 17, 2009 271 0 Jan 29, 2011 #1 I'm just wondering, if you create a category for an existing class, like NSString or NSArray, will the methods also be adopted by the subclasses, like NSMutableString and NSMutableArray?
I'm just wondering, if you create a category for an existing class, like NSString or NSArray, will the methods also be adopted by the subclasses, like NSMutableString and NSMutableArray?
K kpua macrumors 6502 Jul 25, 2006 294 0 Jan 29, 2011 #2 Yes, absolutely. This is absolutely necessary for categories on NSObject to affect every subclass, like KVO and KVC.
Yes, absolutely. This is absolutely necessary for categories on NSObject to affect every subclass, like KVO and KVC.