osx - Steps to Get Value from NSComboBox -



osx - Steps to Get Value from NSComboBox -

im new cocoa applications(mac application) , im trying selected value nscombobox , don't how proceed, please help me on this, improve if steps provided. in advance

use objectvalueofselecteditem , if that's nil user has entered text not list, utilize stringvalue method of nscontrol ancestor:

nsstring *str = [_combobox objectvalueofselecteditem]; if (!str) str = [_combobox stringvalue];

osx cocoa

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -