Instance Method

recalculateKeyViewLoop

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

Declaration

- (void)recalculateKeyViewLoop;

Discussion

The key view loop is actually recalculated the next time someone requests the next or previous key view of the window. The recalculated loop is based on the geometric order of the views in the window.

If you do not want to maintain the key view loop of your window manually, you can use this method to do it for you. When it is first loaded, NSWindow calls this method automatically if your window does not have a key view loop already established. If you add or remove views later, you can call this method manually to update the window’s key view loop. You can also set the autorecalculatesKeyViewLoop property to have the window recalculate the loop automatically.

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.

- 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.

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.