NSTextField inserts tabs instead of advancing focus
NSTextField inserts tabs instead of advancing focus
- Subject: NSTextField inserts tabs instead of advancing focus
- From: David Catmull <email@hidden>
- Date: Wed, 13 Dec 2006 13:49:28 -0800
I have some NSTextFields that are inserting tab characters instead of
advancing the user focus when the tab key is pressed, and I can't
figure out why. The fields are each in a tab that otherwise contains
a table view and some buttons; there is only one text field in each
tab. This is in a floating panel in a Carbon application.
- I tried setting the delegate and overriding -
control:textView:doCommandBySelector, but it doesn't get called for
the tab key (it does for delete)
- Prior to the above, the delegate was not set, and I did not modify
the window's field editor
- The problem does not happen when testing the interface in Interface
Builder
- Pressing tab while the table view is focused does shift focus to
the text field
- Setting the field's nextKeyView didn't help
I'm running out of ideas. What could be causing this?
--
David Catmull
email@hidden
http://www.uncommonplace.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