Re: NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Greg Weston

> 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™.

You’re describing long-standing documented behavior and the correct approach to 
achieve the alternative behavior you want. Where’s the Bad Idea?
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Markus Spoettl

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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Markus Spoettl
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.


Regards
Markus
--
__
Markus Spoettl
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com