0

I want get index of value item of NSCombobox if string equals it. My code is add item for NSCombobox :

for (int i = 1; i <= 30; ++i)
{
   [combox addItemWithObjectValue:[NSNumber numberWithInt:i]];
}

I don't know how to count value item of NSCombobox. Do you show me?

icodebuster
  • 8,890
  • 7
  • 62
  • 65
HTKT611
  • 161
  • 1
  • 1
  • 11

1 Answers1

0

May be you should try indexOfItemWithObjectValue: method? See NSComboBox Class Reference

cody
  • 3,233
  • 1
  • 22
  • 25