• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTokenField: "value" binding hijacks down-arrow key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTokenField: "value" binding hijacks down-arrow key [Punted]
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: do you init your instance variables in init method or outside the class?
  • Next by Date: NSAutounbinder not releasing my object in a timely manner
  • Previous by thread: [ANN]: Beeblex - Free IAP verification service for iOS
  • Next by thread: Re: NSTokenField: "value" binding hijacks down-arrow key [Punted]
  • Index(es):
    • Date
    • Thread