Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs
Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs
- From: "Ian G. Gillespie" <email@hidden>
- Date: Fri, 4 Jun 2004 17:14:34 -0700
Hi Moray,
If you sub-class an NSTextFieldCell (or any cell for that matter) and
put it in your tableView you can then over-ride:
- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
ofView:(NSView *)controlView untilMouseUp:(BOOL)untilMouseUp
which I believe will be called when the user clicks the cell.
Hope this helps.
Ian
Message: 12
To: Cocoa Users <email@hidden>
From: Moray Taylor <email@hidden>
Subject: Help: Detect click of cell in NSTableView
Date: Sat, 5 Jun 2004 00:07:07 +0100
Hi,
I want to know which cell was clicked in an NSTableView, I can get row
very easily of course, but how do I get the column? (If I know both, I
could figure out the cell.) I can get the click on a column header with
the NSTableView delegates, but I'd like to be able to get the column
wherever the user clicked.
Thanks for any suggestions
Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.