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 -

java - Bypassing "final local variable defined in an enclosing type" -

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