, , , , , - , . , , , mouseDown: . - mouseDown: , , .
@implementation CustomTable
- (void)mouseDown:(NSEvent *)theEvent
{
[super mouseDown:theEvent];
NSPoint point = [self convertPoint:theEvent.locationInWindow fromView:nil];
NSView *theView = [self hitTest:point];
if ([theView isKindOfClass:[NSTextField class]])
{
NSLog(@"%@",[(NSTextField *)theView stringValue]);
}
}
@end