I'm attempting to customize a NSTableHeaderCell
to detect mouse clicks. In the past i've used things such as an NSTrackingArea
or overriding the mouseDown
event such as:
-(void)mouseDown:(NSEvent *)theEvent
{
NSLog(@"Mouse down");
}
These methods don't seem to work properly on a NSTableHeaderCell
as its a cell rather than a view.
Does anyone have any suggestions on detecting mouse events on a cell? Specifically I would like to catch the first click (along with its location).