Skip navigation.
 
mlRe: NSTable: Notification on selection of already selected row.
FROM : Eric Forget
DATE : Wed Dec 01 21:24:46 2004

Hi Danny,

There is a few possibilities. It depends on what you are trying to do.

1) From your delegate implement either:

- (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(int)rowIndex

- (void)tableViewSelectionIsChanging:(NSNotification *)aNotification


2) In a NSTableView subclass, override:

- (void)mouseDown:(NSEvent *)theEvent

And call [self rowAtPoint:aPoint] to obtain the clicked row. Do not forget
to call [super mouseDown: theEvent].


3) Maybe another solution, which is best suited for your need, if we just
know what you are trying to do.

Éric

>
> Just a quickie...
>
> Anyone know how I can get notified (or anything) when a row gets
> clicked in an NSTable (or NSOutlineView) - wait for it - when it's
> already selected!  The class seems to adopt the attitude: "Well hell
> I'm already selected so what does he need to know for."
>
> ... and before you start, yes I do have a good reason to need this and
> I really don't think it's counter to Apples UI guidelines ;-)
>
> All the best, and many thanks in advance,
>
> Danny
>
>
> BTW, a solution without resorting to mouse coords would be nice.



___________________________________________________________________

Eric Forget                      Cafederic
<email_removed>            <http://www.cafederic.com/>

Related mailsAuthorDate
mlNSTable: Notification on selection of already selected row. Danny Frey Dec 1, 15:23
mlRe: NSTable: Notification on selection of already selected row. j o a r Dec 1, 20:33
mlRe: NSTable: Notification on selection of already selected row. Brian Ganninger Dec 1, 20:41
mlRe: NSTable: Notification on selection of already selected row. Eric Forget Dec 1, 21:24
mlRe: NSTable: Notification on selection of already selected row. Douglas A. Welton Dec 1, 22:28