I am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried:
field.text = [nsstring stringwithformat:@"%i", number];
[field setText:@"%i", number];
and setString, all to no avail.
I am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried:
field.text = [nsstring stringwithformat:@"%i", number];
[field setText:@"%i", number];
and setString, all to no avail.
You should be able to use the setStringValue: method that NSTextField inherits from NSControl.
The full signature is:
- (void)setStringValue:(NSString *)aString