문제

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