Re: Tab order in a view containing an NSTabView
Re: Tab order in a view containing an NSTabView
- Subject: Re: Tab order in a view containing an NSTabView
- From: matt neuburg <email@hidden>
- Date: Mon, 28 Jul 2003 11:52:04 -0700
On Thu, 24 Jul 2003 21:57:05 -0500, "John Debay" <email@hidden>
said:
>
Hi,
>
>
I have a quick question regarding how to properly set up the keyboard loop
>
for a view containing an NSTabView. I have a series of controls that
>
represents a form within my window. One of the controls needs to change
>
between a text field and a popup button, depending on the context. This is
>
implemented by switching between two tabs in a tab view with the tabs
>
themselves hidden. The problem I'm having is with the tab order from the
>
control in the tab view to the next control in the form. Basically, it
>
doesn't work. I''ve been concentrating on just getting the text field in
one
>
tab to work, and I'll worry about the popup button later. I've set the
>
initial first responder of the tab view to the text field, and have
>
experimented with setting the next key view of the text field, first to
the
>
next element in the form (where I want the focus to go next, but is
outside
>
of the tab view), then to the tab view, etc., and nothing has worked. When
>
the text field in the tab view has the focus, hitting tab does nothing.
As far as I can tell, tabbing into and out of tab views doesn't work by
default. I think you can set this up in code by catching the Tab key at a
higher level, such as NSWindow's sendEvent:. m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.