Re: NSTableView and first responder
Re: NSTableView and first responder
- Subject: Re: NSTableView and first responder
- From: Ken Victor <email@hidden>
- Date: Thu, 19 Apr 2007 09:32:42 -0700
hac,
thanx for the reply. but no. -editColumn:row:withEvent:select: is
not called when tabbing into the table.
i've solved this by overriding [NSWindow makeFirstResponder] and
keeping track of whether or not i'm switching to/from the table/field
editor from/to the date picker and keeping track of what was the
previous "first" responder (ie, the date picker, or the table/field
editor while ignoring when the window itself becomes first responder).
ken
At 12:25 PM -0400 4/19/07, hac wrote:
Would -editColumn:row:withEvent:select: do the trick?
i have a window containing an NSDatePicker and an NSTableView. the
table has several rows and columns and all cells are editable text
cells. whenever the table is the "focused" view, there needs to be an
editable cell. eg, if the user tabs from the date picker to the
table, the cell in the first column of the first row, should be
selected for editting.
becomeFirstResponder and resignFirstResponder seem useless because
the actual first responder will ultimately be the field editor, and
the table receives a sequence of resigns/becomes when moving between
cells in the table.
any suggestions?
thanx,
ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden