Re: previousResponder?
Re: previousResponder?
- Subject: Re: previousResponder?
- From: Salánki Benjámin <email@hidden>
- Date: Sun, 7 Jan 2007 08:47:10 +0100
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.
Ben
On Jan 7, 2007, at 2:17 AM, Matt Neuburg wrote:
On or about 1/6/07 2:23 PM, thus spake "Salánki Benjámin"
<email@hidden>:
Alternatively (since no one has come up with suggestions that work)
What doesn't work? The window will receive a setPreviousKeyView:
call when
the user presses Shift-Tab, so you are free to override if you want
something special to happen. m.
On Jan 5, 2007, at 9:58 PM, Matt Neuburg wrote:
On Fri, 5 Jan 2007 20:21:28 +0100, Sal?nki Benj?min
<email@hidden>
said:
Hi there, I'm looking for a way to determine basically the opposite
of nextResponder, i.e. what the responder would be if i hit shift-
tab.
Is there a way to do this?
You're just confused. Tabbing has nothing to do with the responder
chain. It
involves a convention where the window moves the focus to the next
key view.
And guess what, NSWindow has nextKeyView and previousKeyView
methods. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.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