title: NSButton Inside NSTextField
body: <p>I'm trying to create a NSTextField with a button on its right side (similar to a NSSearchView), but I can't figure out how to have the NSTextField's text scroll without going under the NSButton.</p>
  
  <p>Here is my code thus far:</p>
  
  <pre><code>rightButton = [[NSButton alloc] initWithFrame:rect];
  [rightButton setTarget:self];
  [[rightButton cell] setHighlightsBy:NSNullCellType];
  [rightButton setImage:[NSImage imageNamed:@"rightButton"]];
  [rightButton setAction:@selector(action:)];
  [rightButton setBordered:NO];
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>EDIT: Here is a screenshot of the problem.
  <img src="https://i.stack.imgur.com/Pz7GD.png" alt="Screenshot of the bug."></p>