title: How do I force the cursor to the end of a NSTextField?
body: <p>I am NSOpenPanel to select a file or folder from a user's machine.  But when the user clicks "open" the cursor is at the beginning of the path that shows up in the text field.  This is a problem because until you click in the textfield and arrow right, you won't see that the entire path is listed.  For example if the path is:</p>
  
  <pre><code>/Users/jeremysmith/code/testfolder/testfolder2
  </code></pre>
  
  <p>It may only show:</p>
  
  <pre><code>/Users/jeremysmith/code/
  </code></pre>
  
  <p>since the cursor is at the beginning and the text field's width only goes to "code".</p>