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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top