Contents

recalculateKeyViewLoop()

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

Declaration

func recalculateKeyViewLoop()

Discussion

The key view loop is 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 don’t want to maintain the key view loop of your window manually, you can use this method to do it for you. When it’s first loaded, NSWindow calls this method automatically if your window doesn’t 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