title: NSTextField with auto-suggestions like Safari's address bar?
body: <p>What's the easiest way to have an <code>NSTextField</code> with a "recommendation list" dynamically shown below it as the user types? Just like Safari's address bar that has a menu of some sorts (I'm pretty confident Safari's address bar suggestions is menu since it has rounded corners, blue gradient selection, and background blurring).</p>
  
  <p>I've tried using <a href="https://stackoverflow.com/questions/6725359/nstextfield-with-suggestions-drop-down"><code>NSTextView</code>'s autocompletion facility</a> but found it was inadequate:</p>
  
  <ul>
  <li>It tries to complete <em>words</em> instead of the whole text fields – in other words, selecting an autocomplete suggestion will only replace the current word.</li>
  <li>It nudges the autocompletion list forward and align it with the insertion point instead of keeping it align with the text field.</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/DtSr7.png" alt="Sample autocomplete"></p>
  
  <p>In the sample screenshot above whenever I selected the autocomplete suggestion the text field only replaces <code>K</code> with the suggested item in the list, which results in <code>Abadi Abadi Kurniawan</code>. </p>
  
  <p>These are what I'd like to achieve:</p>
  
  <ul>
  <li>Whenever a suggestion is selected, the entire text field is replaced with the suggestion.</li>
  <li>Keep the suggestion list aligned with the text field's left side.</li>
  </ul>
  
  <p>Note: This is <em>not</em> a question about <a href="https://stackoverflow.com/questions/4676555/nstextfield-like-safari-address-bar">adding progress indicator behind a text field</a>.</p>