objective c - Xcode NSString in textfield -


i'm new xcode , objective-c have succeeded in creating btton , when user clicks button number displayed in textfield, can't seem find way put text in there.

-(ibaction) button1pressed: (id) sender { [field1 setintvalue:36]; } 

-(ibaction) button1pressed: (id) sender {     [field1 setstringvalue:@"some text"]; } 

method inherited nscontrol, documentation here: http://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/nscontrol_class/reference/reference.html#//apple_ref/occ/instm/nscontrol/setstringvalue:


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -