Skip navigation.
 
mlRe: up/down arrow action in a table
FROM : j o a r
DATE : Mon Nov 18 23:39:01 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlup/down arrow action in a table Tackel Nov 18, 21:24
mlRe: up/down arrow action in a table j o a r Nov 18, 23:39
mlRe: up/down arrow action in a table Jean-Olivier Lanct… Nov 18, 23:52