Instance Method

resignFirstResponder

Notifies the receiver that it’s been asked to relinquish its status as first responder in its window.

Declaration

- (BOOL)resignFirstResponder;

Discussion

The default implementation returns YES, resigning first responder status. Subclasses can override this method to update state or perform some action such as unhighlighting the selection, or to return NO, refusing to relinquish first responder status.

Use the NSWindow makeFirstResponder: method, not this method, to make an object the first responder. Never invoke this method directly.

See Also

Changing the First Responder

acceptsFirstResponder

A Boolean value that indicates whether the responder accepts first responder status.

- becomeFirstResponder

Notifies the receiver that it’s about to become first responder in its NSWindow.

- validateProposedFirstResponder:forEvent:

Allows controls to determine when they should become first responder.