Re: nextKeyView not cycling through NSEditText fields
Re: nextKeyView not cycling through NSEditText fields
- Subject: Re: nextKeyView not cycling through NSEditText fields
- From: Murat Konar <email@hidden>
- Date: Fri, 30 Mar 2007 15:27:26 -0700
You mean "NSTextField", not "NSEditText", right?
Are you doing any validation in your fields? Perhaps the last field
isn't validating...
If that's not it, programmatically traverse the keyboard loop using
NSView's nextKeyView method to prove that something isn't changing
the loop out from under you. If that looks good, traverse it again,
this time using NSView's nextValidKeyView method to check that
something isn't changing your first field's willingness to become
first responder.
_murat
On Mar 30, 2007, at 3:14 PM, Mike wrote:
No dice - I reset the keyboard loop and then reset all the
connections. All 4 of them are identical - I can go forward through
all the field but when the focus reaches the last of the four
fields it stops there and won't return to the first one on the
next tab press.
Mike
Ricky Sharp wrote:
On Mar 30, 2007, at 1:18 PM, Mike wrote:
I have an NSView in a window with 4 NSEditText fields. All 4 of
the text fields are connected via their nextKeyView outlets. I
want the user to be able to hit the Tab key and have the focus
cycle continuously through all of the text fields in order.
The first three of these work - when I press Tab the cursor
advances to the next text field and it gets the focus. The last
of the 4 fields however doesn't work - when it has focus and I
press Tab nothing happens - even though the connection is there
and I control-dragged the connection back to the first text field
in Interface Builder. All 4 of the edit text fields have the same
connection settings so I don't see why it shouldn't work.
Maybe something went bad in the nib. Try clearing the key loop in
IB (Layout | Keyboard Navigation | Clear Keyboard Loop). Then
rewire your nextKeyView outlets and see if all is then well.
_______________________________________________
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