title: Finding out the NSTextField for a field editor
body: <p>I' using </p>
  
  <pre><code>- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)anObject 
  </code></pre>
  
  <p>to provide my own field editor so i can display a custom context menu.
  This works but when inside the "menuForEvent:" method of my field editor, how can i find to which NSTextField it is attached?</p>
  
  <p>EDIT: okay i found that i get it via inside the TextView via</p>
  
  <pre><code>[[[[self window] firstResponder] nextResponder] nextResponder]
  </code></pre>
  
  <p>The question is - is this a good solution or a hack.
  I have to skip an internal responder of class _NSKeyboardFocusClipView so i scared that this might not work on future Cocoa versions.</p>