title: Change the text in a NSTextField programmatically?
body: <p>I am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried:</p>
  
  <pre><code>field.text = [nsstring stringwithformat:@"%i", number];
  [field setText:@"%i", number];
  </code></pre>
  
  <p>and setString, all to no avail.</p>