0

In my Cocoa application I show the result of a calculation in a NSTextView, now I wish you could see the result in a NSextField, I tried in every way but did not succeed.

[textField insertText:[NSString stringWithFormat:@"%i \n", giorni]];
lnafziger
  • 25,760
  • 8
  • 60
  • 101
Andrea
  • 427
  • 3
  • 16

1 Answers1

0

How about: (edited for the NS instead of UI textField)

[textField setIntValue:giorni];
lnafziger
  • 25,760
  • 8
  • 60
  • 101