Re: previousResponder?
Re: previousResponder?
- Subject: Re: previousResponder?
- From: Salánki Benjámin <email@hidden>
- Date: Sun, 7 Jan 2007 17:56:02 +0100
The key loop in IB is (BTW, we are dealing with a window presented as
a sheet here. i tried it as a window on its own, no difference)
NSPopUpButton -> NSPopUpButton -> NSSearchField -> NSButton ->
NSButton -> NSButton -> NSTabView(with visible tabs) -> NSTableView
(subclassed, located inside the NSTabView). Now from the Table it
should pop back to the NSPopUpButton on pressing tab (didn't
automatically, but i figured it out programmatically), shift-tab
should put the focus back on the tab view (if full keyboard access is
on) or the search field (if it is off). But right now nothing
happens. Since my tableview implements keyDown: i tried sending the
shift-tab to super, but NSTableView does not implement - (void)
insertBacktab:(id)sender so that one's no help.
Ben
On Jan 7, 2007, at 4:09 PM, Ricky Sharp wrote:
On Jan 7, 2007, at 1:47 AM, Salánki Benjámin wrote:
To quote one of my previous answers:
Yes, but here's what's happening if I use previousKeyView: nothing.
I have a table in a split view which is inside a tabview. i need
to shift-tab toan nssearchfield that is on the same level as the
tab view. but i just can't get it to work. nextKeyView on the
other hand works just dandy. plus i also connected everything in
IB, so the problem should not be there.
See, previousKeyView returns nil. Setting it programmatically
would require me to find out if full keyboard access is turned on
or not, because I need to select different items based on this.
Which takes me back to my original question.
You don't have to find out of full keyboard access is on/off; the
Cocoa frameworks will do the right thing (with standard Aqua
controls or even controls you create yourself).
For this particular window, what is the exact key loop you've set
up in IB?
Note that you rarely should need to programatically set nextKeyView
to establish a key loop. I've had to do this in some situations
where I had nested tabless tab views. There were situations that
could occur where no control would have key focus when full key
access was on. The code I use to manually rewire things is always
put in tabView:didSelectTabViewItem:
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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