Instance Property

acceptsFirstResponder

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

Declaration

@property(readonly) BOOL acceptsFirstResponder;

Discussion

As first responder, the receiver is the first object in the responder chain to be sent key events and action messages. By default, this property is NO. Subclasses set this property to YES if the receiver accepts first responder status.

See Also

Changing the First Responder

- becomeFirstResponder

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

- resignFirstResponder

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

- validateProposedFirstResponder:forEvent:

Allows controls to determine when they should become first responder.