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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -