Instance Method

selectNextKeyView:

This action method searches for a candidate next key view and, if it finds one, invokes makeFirstResponder: to establish it as the first responder.

Declaration

- (void)selectNextKeyView:(id)sender;

Parameters

sender

The message’s sender.

Discussion

The candidate is one of the following (searched for in this order):

  • The current first responder’s next valid key view, as returned by the nextValidKeyView method of NSView

  • The object designated as the window’s initial first responder (using initialFirstResponder) if it returns YES to an acceptsFirstResponder message

  • Otherwise, the initial first responder’s next valid key view, which may end up being nil

See Also

Managing the Key View Loop

- selectKeyViewPrecedingView:

Makes key the view that precedes the given view.

- selectKeyViewFollowingView:

Makes key the view that follows the given view.

- selectPreviousKeyView:

This action method searches for a candidate previous key view and, if it finds one, invokes makeFirstResponder: to establish it as the first responder.

keyViewSelectionDirection

The direction the window is currently using to change the key view.

autorecalculatesKeyViewLoop

A Boolean value that indicates whether the window automatically recalculates the key view loop when views are added.

- recalculateKeyViewLoop

Marks the key view loop as dirty and in need of recalculation.