Re: up/down arrow action in a table
Re: up/down arrow action in a table
- Subject: Re: up/down arrow action in a table
- From: j o a r <email@hidden>
- Date: Mon, 18 Nov 2002 23:39:01 +0100
Use the delegate methods available in NSTableView. Make sure that your
controller object is the delegate of the table view, you can probably
set this in IB, and then implement this method in the controller:
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
...to be notified when the user modifies the selection in the table
view, regardless if it is via the mouse or the keyboard.
j o a r
On Monday, Nov 18, 2002, at 21:24 Europe/Stockholm, Tackel wrote:
I have a table in the main window and want to show different
information
when a row is selected. I have implemented setAction so it works when
a user
selects one row by clicking in it, but I have no idea how to update
the info
when the user selects the previous/next row by pressing up/down arrow.
I have read all the apple document about keyboard handling but I
cannot do
my application works. I have tried many things but nothing worked.
_______________________________________________
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.