• 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
NSComboBoxCell & AutoComplete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBoxCell & AutoComplete


  • Subject: NSComboBoxCell & AutoComplete
  • From: email@hidden
  • Date: Sun, 09 Oct 2011 17:18:40 -0700

I have an NSComboBox bound to the selection of an NSArrayController. The bound object is an NSDictionary.  I use an NSValueTransfomer to represent the NSDictionary. The ValueTransformer gives me the dictionary's summary property which is useful for people choosing the appropriate NSDictionary from the array. I have set up the NSComboBox to use a datasource for custom autocompletion. I need case insensitive autocompletion which does not come straight of the box. Whenever I star typing in my NSComboBox, I get an -[NSDictionary length] exception. The NSComboxCell is trying to complete by sending a length request to the bound object, not through the transformer. Is there a way around this? The calling method before the exception is [NSComboBoxCell _completeNoRecursion]. Thanks,

Patrick
_______________________________________________

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: NSComboBoxCell & AutoComplete
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Give a menu keyboard focus - in code
  • Next by Date: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • Previous by thread: Re: Give a menu keyboard focus – in code
  • Next by thread: Re: NSComboBoxCell & AutoComplete
  • Index(es):
    • Date
    • Thread