문제

I have two nsbutton in my window.I need to link between these two in a way that,if the user press tab focus should go to the next button.

I know how the responder chain works.My Question is How to do this in interface builder.Please help.

도움이 되었습니까?

해결책

You're looking for the nextKeyView outlet. Just set the nextKeyView outlet of one button to the button you want to be next in the tab chain.

This is nothing to do with the responder chain, by the way.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top