NSActionCell, mouse tracking and NSTableView
NSActionCell, mouse tracking and NSTableView
- Subject: NSActionCell, mouse tracking and NSTableView
- From: Mark Alldritt <email@hidden>
- Date: Wed, 08 Dec 2004 10:44:28 -0800
Hi All,
I'm trying to create a NSActionCell subclass which implements roll-over
effects for use within NSTableView and NSOutlineView. I've tried
implementing the following methods from NSCell, but they are not being
invoked:
- (void) mouseEntered:(NSEvent*) event
{
NSLog(@"[BrowserValueCell mouseEntered:]");
}
- (void) mouseExited:(NSEvent*) event
{
NSLog(@"[BrowserValueCell mouseExited:]");
}
- (BOOL) startTrackingAt:(NSPoint) startPoint inView:(NSView*) controlView
{
NSLog(@"[BrowserValueCell startTrackingAt:...]");
return YES;
}
- (BOOL) continueTracking:(NSPoint) lastPoint at:(NSPoint) currentPoint
inView:(NSView*) controlView
{
NSLog(@"[BrowserValueCell continueTracking:...]");
return YES;
}
- (void) stopTracking:(NSPoint) lastPoint at:(NSPoint) stopPoint
inView:(NSView*) controlView mouseIsUp:(BOOL) flag
{
NSLog(@"[BrowserValueCell stopTracking:...]");
}
How do I get these methoes to work (or otherwise get their functionality) in
my NSCell subclass?
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9
_______________________________________________
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