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
Post a Comment