newbie Category question (what's the point?)
newbie Category question (what's the point?)
- Subject: newbie Category question (what's the point?)
- From: Mark Dawson <email@hidden>
- Date: Wed, 16 Mar 2005 09:37:11 -0800
In the Sketch example, they've introduced a category:
@interface SKTGraphic (SKTEventHandling)
...
- (BOOL)hitTest:(NSPoint)point isSelected:(BOOL)isSelected;
...
@end
However, in the @implementation SKTGraphic, hitTest is defined (NOT a separate @implementation SKEventHandling). SKTEventHandling doesn't seem to be used anywhere else in the program.
What is the point of this? It seems that its just the same as putting it in the @interface for SKTGraphic, with the effect (if I understand categories) that hittest can't be subclassed in a subclass of SKTGraphic.
Thanks for any enlightenment!
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden