How to discover switching between NSTableViews
How to discover switching between NSTableViews
- Subject: How to discover switching between NSTableViews
- From: Rob In der Maur <email@hidden>
- Date: Fri, 9 May 2003 15:13:52 +0200
Ok, this might be too obvious, but imagine a main window with two
NSTableViews and one 'utility window' that will get updated based on
the selection in either one of the table views.
I've programmed it such that a notification is sent to the utility
window based when you change a selection in either one of the tables
(using the selectionDidChange delegate). But how to trigger that you
simply switch focus with the mouse between the two tables (without
actually changing the current selection in either one of them). Simply
stated, I just need to figure out when one of these NSTableView has
gotten focus.
I thought becomeFirstResponder but that this mean I have to subclass
the NSTableView class? And I thought about catching the MouseDown event
but that seems like a bit of overhead...
cheers,
- Rob In der Maur
_______________________________________________
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.