Have a borderless window over NSTextField with a NSButton in that window. canBecomeKeyView returns YES for this NSButton. I want to be able to emulate setNextKeyView for this NSButton to be the next focus holder after NSTextField. The borderless window is the child window of the main window. The NSTextField resides on main window. What is the proper way of doing this thing?
Have a borderless window over NSTextField with a NSButton in that window. canBecomeKeyView returns
Share
I experienced the same problem.
In interface builder I had a window with an NSTextField and an NSButton. I want to be able to tab between them. I did what I thought was correct:
But this was not working as expected.
It Turns out that in the Apple > System Preferences > Keyboard there is a setting that allows you to press Tab to move keyboard focus between:
The first option is set by default. Once changed to All controls everything worked as expected.