The Cocoa term you're looking for is "key view loop". Use the initialFirstResponder
and nextKeyView
outlets to connect the views together in the order you'd like to tab through them.
This is mentioned in the documentation here.
Note that the items which can receive keyboard focus will change depending on the Full Keyboard Access setting (in System Preferences > Keyboard); if disabled, tabbing will skip over various items in your key view loop.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…