selectNextKeyView(_:)
Searches for a candidate next key view and, if it finds one, tries to make it the first responder.
Declaration
func selectNextKeyView(_ sender: Any?)Parameters
- sender:
The message’s sender.
Discussion
The candidate is one of the following (which this function searches for in this order):
The current first responder’s next valid key view, which the nextValidKeyView method of
NSViewreturnsThe object initialFirstResponder designates as the window’s initial first responder if it returns true to an acceptsFirstResponder message
Otherwise, the initial first responder’s next valid key view, which may be
nil