NSTokenField: "value" binding hijacks down-arrow key
NSTokenField: "value" binding hijacks down-arrow key
- Subject: NSTokenField: "value" binding hijacks down-arrow key
- From: Jerry Krinock <email@hidden>
- Date: Wed, 18 Jul 2012 09:12:40 -0700
• "value" binding of an NSTokenField bound is bound via an object controller to an array property of a model object.
• -tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: is implemented to show completions.
The completions menu shows, but when user hits the down-arrow key, instead of stepping into the completions menu, the token ends editing immediately, setting its value to the first completion in the menu.
Problem seems to be related to the "value" binding, because without this binding the down-arrow key steps into the completions menu as expected. Works the same with or without the binding options (No Selection, Multiple Values, etc.). Also works the same with either binding in Interface Builder or in code.
I've been pounding on this for several hours. Any ideas?
Thanks,
Jerry Krinock
_______________________________________________
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