NSView subclass
NSView subclass
- Subject: NSView subclass
- From: DKJ <email@hidden>
- Date: Wed, 15 Oct 2008 14:15:59 -0700
I've written a subclass of NSView. It calls a method its delegate can
implement to detect mouse clicks. I've put something like this in the
header file:
// delegate method:
@interface NSObject ()
- (void)pointClicked:(NSPoint)point;
@end
This is enough to prevent a "no -pointClicked: method found" compiler
warning. But is it the best way to do it?
dkj
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden