0

I have an NSComboBox with some values. Is there any way by which I can disable a few items? I want some values to be enabled and some disabled. Is it possible?

Rajamohan S
  • 7,229
  • 5
  • 36
  • 54
P.D
  • 1
  • why don't you simply remove them from the data source? – Leo Dabus Oct 10 '17 at 05:01
  • you can also observe the index of the selecteded item and select another one in case of a invalid index selection. – Leo Dabus Oct 10 '17 at 05:05
  • Hi Leo, thanks for the suggestion. I had already thought of the removal from datasource, but i would like to disable the items and not remove it completely. Is there any way out for that? – P.D Oct 10 '17 at 05:30
  • 1
    The options you have I already commented above. You can't disable any of them but you can select a different one in case you don't want to allow the user to select it – Leo Dabus Oct 10 '17 at 05:31

0 Answers0