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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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