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

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -