title: How to get the firstResponder-to-be when an NSView is asked to resign as first responder?
body: <p>I've created a custom subclass of <code>NSControl</code> which accepts a small amount of text. I'm using the window's field editor for any editing purposes (just like how <code>NSTextField</code> does). When I lose first responder status, I'd obviously like to send a <code>-commitEditing:</code> message, but if you're well-versed in the area of OS X's text system, you know that a <code>-resignFirstResponder</code> message is sent to the control before appointing the field editor as the new first responder.</p>
  
  <p>So I was thinking that if I could find out whether the field editor is to be the new first responder when the <code>-resignFirstResponder</code> method is called, I could make sure <code>-commitEditing:</code> isn't called.</p>
  
  <p>With that said, is there a way to find out which object will become the new first responder?</p>