• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
newbie Category question (what's the point?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: newbie Category question (what's the point?)
      • From: "Dennis C. De Mars" <email@hidden>
  • Prev by Date: Why is encodeWithCoder: called twice?
  • Next by Date: Re: Avoiding flicker when dropping in a view
  • Previous by thread: Why is encodeWithCoder: called twice?
  • Next by thread: Re: newbie Category question (what's the point?)
  • Index(es):
    • Date
    • Thread