• 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
Re: NSComboBox -comboBox:completedString: not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox -comboBox:completedString: not called


  • Subject: Re: NSComboBox -comboBox:completedString: not called
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 13 Mar 2018 10:21:37 +0100

On 3/13/18 09:42, Markus Spoettl wrote:
I have trouble with NSComboBox in that the data source method -comboBox:completedString: is not getting called. The combo box in question uses bindings for "Value" and "Content Values", so I have no other data source methods implemented and -usesDataSource is NO (when that is turned to YES, the combo box looses its content).

What I really want is implement case insensitive completion, I don't insist on using the data source if there's another way to do that.

So, to answer my own question, I can "get this to work" using a custom NSComboBoxCell subclass, implementing -completedString.

Having seen this in action I must confess this is a Bad Idea™.

Regards
Markus

--
__________________________________________
Markus Spoettl
_______________________________________________

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

References: 
 >NSComboBox -comboBox:completedString: not called (From: Markus Spoettl <email@hidden>)

  • Prev by Date: NSComboBox -comboBox:completedString: not called
  • Next by Date: Re: NSComboBox -comboBox:completedString: not called
  • Previous by thread: NSComboBox -comboBox:completedString: not called
  • Next by thread: Re: NSComboBox -comboBox:completedString: not called
  • Index(es):
    • Date
    • Thread