title: How do I get the string length of the stringValue of an NSTextField?
body: <p>This is probably a naive question but, how do I get the length of the <code>stringValue</code> of an <code>NSTextField</code>? I tried </p>
  
  <pre><code>int len = strlen((char *)[textField stringValue]);
  </code></pre>
  
  <p>where <code>textField</code> is an <code>NSTextField</code> but it always returns 6 (size of a pointer?). Besides I am sure that there is a more Objective-C way to do what I am after. </p>