Re: previousResponder?
Re: previousResponder?
- Subject: Re: previousResponder?
- From: Ricky Sharp <email@hidden>
- Date: Sun, 7 Jan 2007 09:09:05 -0600
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