NSView -nextKeyView and -previousKeyView only working once
NSView -nextKeyView and -previousKeyView only working once
- Subject: NSView -nextKeyView and -previousKeyView only working once
- From: Michael Watson <email@hidden>
- Date: Fri, 16 Feb 2007 12:04:22 -0500
I have a window whose content view contains a set of buttons. Calling
this makes the first button the first responder:
[myWindow makeFirstResponder:[[myWindow contentView] nextKeyView]];
However, subsequent repeats result in the same button being made
first responder. I compared addresses to see what -nextKeyView was
returning, and sure enough, it would only ever return the same
object. -previousKeyView exhibited the same behaviour.
Clearly, I'm doing something wrong in my attempts to traverse the
buttons with -nextKeyView. What should I be doing instead?
--
m-s
_______________________________________________
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