How can I make my NSTextField NOT highlight its text when the application starts?

前端 未结 3 1529
無奈伤痛
無奈伤痛 2021-02-07 16:10

When my application launches, the first NSTextField is being selected like this:

I can edit the NSTextField fine, but when I press enter to end the editing, th

3条回答
  •  离开以前
    2021-02-07 16:37

    I am using IB, there's a property on NSTextField called Refuses First Responder. Ticking that will prevent the highlighting of the text field immediately after the window is presented. There's some more detailed info about Refuses First Responder in this question.

提交回复
热议问题