Re: Tabbing a NSTableView
Re: Tabbing a NSTableView
- Subject: Re: Tabbing a NSTableView
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 08 Jul 2002 16:34:05 -0400
on 02-07-07 6:03 PM, Pierre-Olivier Latour at email@hidden wrote:
>
Regarding how to tab to a NSTableView, I'm really stuck: I tried every
>
possible possibility in IB: setting the next responder to the NSTableView,
>
the NSScrollView, etc...
>
>
I also defined the initial first responder as the NSTableView, but it does
>
not work: at startup, the first NSTextField get selected instead. Curiously,
>
if I call "[window makeFirstResponder:tableView];" it works...
>
>
I think these problems come from the fact that the NSTableView is inside a
>
NSScrollView, which can't become first responder by tabbing.
I got as far as being able to tab from some view into the tableview (but
only if there is at least one row in it), then tab out to the next view.
When I tab into the table view, the first item is selected (but not for
editing). The fact that it is selected is shown by the entire row's being
highlighted. I never see a focus ring.
But if the table view is empty, it doesn't appear to get selected (but I
can't tell, since there is no focus ring), and I can't tab out of it to the
next view. Tabbing is frozen.
I connect the table view and do not connect the scroll view. I haven't
tested to see whether any of the table view's attribute settings make a
difference.
It seems that there is something seriously wrong here. I have reported it to
RadarWeb as a Jaguar bug. They asked me for an example, so I sent them my
nib file. The tone of their inquiry suggested that they don't believe there
is really a bug, presumably because they can't duplicate it. If they're
right about that, then there must be a bug in the documentation for how to
make it work.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.