• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: up/down arrow action in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >up/down arrow action in a table (From: Tackel <email@hidden>)

  • Prev by Date: Re: Table View Blues
  • Next by Date: Is Objective-C loaded?
  • Previous by thread: Re: Generating NSEvents
  • Next by thread: Re: up/down arrow action in a table
  • Index(es):
    • Date
    • Thread