Implementing key view loop in custom NSView
Implementing key view loop in custom NSView
- Subject: Implementing key view loop in custom NSView
- From: Andreas Eriksson <email@hidden>
- Date: Mon, 10 Aug 2009 11:43:10 +0200
I am wondering whats the best approach to handle the key view loop in a
custom NSView that consists of several sub-views that the user can tab
between?
Lets say I have three views A, B, and C, all chained up in that order in the
key view loop. if B is my custom view consisting of subviews B.x and B.y,
then I want the key view to go like A -> B.x -> B.y -> C.
My current thinking is to override - (BOOL)becomeFirstResponder to change
first responder to B.x when B becomes first responder and to set the next
key view of B.y to the next key view of B.
Is this how it's supposed to be done?
/ Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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