Re: NSToolbars and keyboard navigation
Re: NSToolbars and keyboard navigation
- Subject: Re: NSToolbars and keyboard navigation
- From: email@hidden (Simon Fraser)
- Date: Mon, 2 Dec 2002 23:15:35 -0800
So, let's say I have a text field in the toolbar (like a browser URL
bar), and some other buttons. How can I have keyboard focus cycle
through the toolbar items, then into my window contents, then back to
the toolbar?
It seems that Cocoa wants keyboard focus to cycle through toolbar items
only, and forces the user to use some other method to move keyboard
focus to the window content.
Simon
On Monday, December 2, 2002, at 10:56 pm, j o a r wrote:
NSToolbarItems *aren't* subclasses of NSView, but *have* corresponding
NSToolbarItemViews somewhere. These views are not available through
any public API however, so you cannot modify their behaviour unless
you're willing to resort to hacks == not recommended.
Speaking MVC lingo, I think you could say that NSToolbar and
NSToolbarItem are "model" objects, and not "view" objects. We have
public access to (a bit of) the API for the model objects, but the
view components of the toolbar implementation are private to Apple.
j o a r
On Tuesday, Dec 3, 2002, at 03:19 Europe/Stockholm, Simon Fraser wrote:
With full keyboard access turned on, it's possible to give keyboard
focus to NSToolbarItems. However, I'm confused about how this works,
and how I can tweak it, since NSToolbarItems are not NSViews, and so
don't have a nextKeyView selector.
_______________________________________________
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.