Re: Tabbing to NSPopUpButtonCells in a table?
Re: Tabbing to NSPopUpButtonCells in a table?
- Subject: Re: Tabbing to NSPopUpButtonCells in a table?
- From: George Orthwein <email@hidden>
- Date: Tue, 8 May 2007 15:31:10 -0400
I was a little brief in my first message so I'll elaborate...
I have a table view with several columns of NSTextFieldCells and a
few columns containing NSPopUpButtonCells. If I click in the first
column of a row and hit tab, I travel from NSTextFieldCell to
NSTextFieldCell, skipping over the NSPopUpButtonCell columns.
How can I stop that skipping and traverse to the NSPopUpButtonCells
as I tab? (Full Keyboard Access settings had no effect.)
From this page, I'm guessing that it's not easily done unless you
are dealing with an NSView/NSResponder subclass:
http://developer.apple.com/documentation/Cocoa/Conceptual/
EventOverview/HandlingKeyEvents/chapter_6_section_5.html
Although this message indicates that NSActionCell subclasses work,
which makes sense since the NSTextFieldCells in the table are somehow
tabbing:
http://www.cocoabuilder.com/archive/message/cocoa/2006/10/5/172279
Finally, this message recommends subclassing NSTableView and
overwriting textDidEndEditing... (And actually the example code in
the Apple page above does this...)
http://www.cocoabuilder.com/archive/message/cocoa/2002/10/22/63537
Is that really the best way? I'm not really understanding how the
NSTextFieldCell interacts with the Key View Loop... and why I can't
just override acceptsFirstResponder in my NSPopUpButtonCell subclass.
*confused*
Thanks,
George
On May 3, 2007, at 4:27 PM, George Orthwein wrote:
So did a lot of searching but not seeing quite this question...
Is there any way to tab from NSTextFields to NSPopUpButtonCells in
a tableview? I tried subclassing NSPopUpButtonCell with
acceptsFirstResponder with no luck. And nextkeyview only works with
NSView subclasses...
Yes I do have Full Keyboard Access set to All Controls. :)
Any help appreciated.
Thanks!
_______________________________________________
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