• 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: NSTableView and first responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSTableView and first responder (From: hac <email@hidden>)

  • Prev by Date: Bindings Issue
  • Next by Date: Re: NSURLConnection constantly redirecting
  • Previous by thread: Re: NSTableView and first responder
  • Next by thread: Migration Path for NSArchiver data?
  • Index(es):
    • Date
    • Thread