Objective C categories -
i have 2 classes , lets classa , classb , classb subclass of classa .
and adding category classa ,
@interface classa (datahandling) -(void)adddata; @end
then sublcass add category ,
@interface classb (datahandling) -(void)adddataglobally; @end
will treated single category on multiple categories , run in conflicts, though method names different ?
those 2 different categories on 2 different classes.
no conflicts take place, it's considered best practice prefix category methods unique identifier, like
-(void)my_adddataglobally;
Comments
Post a Comment