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]];
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]];
How about: (edited for the NS instead of UI textField)
[textField setIntValue:giorni];