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
Post a Comment