Re: Navigating a TableView: A Solution
Re: Navigating a TableView: A Solution
- Subject: Re: Navigating a TableView: A Solution
- From: Matt Neuburg <email@hidden>
- Date: Sat, 11 Mar 2006 12:54:35 -0800
- Thread-topic: Navigating a TableView: A Solution
On Sat, 11 Mar 2006 11:48:00 -0700, Peter Bates <email@hidden> said:
>In some of my table views with editable cells, I want the user to be
>able to navigate up and down rows using arrow keys. I want a new row
>to be added if the user tabs in the last cell of the last row, or if
>he/she presses the down arrow in the last row. I want shift tab to
>navigate to the previous cell. When the user selects a row and
>presses the delete key, I want the row deleted, but not if it's the
>only remaining row. Finally, I want to be able to have more than one
>tableview.
>
>This is how I made it work:
>I subclassed NSWindow...
>I subclassed NSTableView for each table that I wanted
So you want this behavior only when an NSTableView is first responder - and
in fact you're already subclassing NSTableView - and yet you subclass the
*window*? That's pretty weird. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden