nextKeyView and NSTabView: How to prevent the tabbing order from going out of the tab view?
nextKeyView and NSTabView: How to prevent the tabbing order from going out of the tab view?
- Subject: nextKeyView and NSTabView: How to prevent the tabbing order from going out of the tab view?
- From: Uli Zappe <email@hidden>
- Date: Fri, 29 Oct 2004 23:32:06 +0200
Hi,
judging by the messages to this topic, the combination of nextKeyView
and NSTabView seems to be generally problematic, but I've run into a
problem I haven't found in the archives so far.
I have an NSWindow with a tabless NSTabView in it and a few buttons
outside the tab view that control the tab view selection. With full
keyboard access enabled, I want the tabbing order to stay *inside* the
tab view, i.e. after tabbing to the last control inside the tab view,
tabbing should lead to the first control inside the tab view again, and
*not* go out of the tab view to the buttons outside the tab view.
This seems to be as easy a task as you can get, but it doesn't work.
I've set the initial first responder inside the tab view, and connected
all controls inside the tab view with the nextKeyView outlets. The last
control's nextKeyView points to the first item inside the tab view (the
first responder) again. Also, for test purposes I mixed up the order of
the controls so that it is easy to see from the tabbing behavior if my
tabbing order produced via nextKeyView outlets is used at all (instead
of a computed tabbing order).
If I test this in Interface Builder (or my app), the tabbing order
clearly shows that my nextKeyView settings *are* used. *Except* the
last one: if I have arrived at the last control, tabbing goes outside
of the tab view, to one of the buttons outside, thus ignoring my
nextKeyView setting.
Is there something I miss, or is this a downright bug? If so, does
anybody know of a work-around?
Thanks in advance for your replies!
Bye
Uli
________________________________________________________
Uli Zappe, Solmsstraße 5, D-65189 Wiesbaden, Germany
http://www.ritual.org
Fon: +49-700-ULIZAPPE
Fax: +49-700-ZAPPEFAX
________________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden