简体   繁体   English

无法将焦点从 NSTextField 上移开并选择其他 NSTextField

[英]Can't take focus off NSTextField and select other NSTextFields

I am having a bit of a problem with the UI/data entry part of my macOS application.我的 macOS 应用程序的 UI/数据输入部分有点问题。 In my application I have 6 NSTextFields, 1 NSDatePicker and 1 NSPopupButton.在我的应用程序中,我有 6 个 NSTextFields、1 个 NSDatePicker 和 1 个 NSPopupButton。 After typing in one NSTextField (specifically the one assigned to an outlet called "itemDescriptionField" in my code) It will not allow me to select other text fields or the date picker.在输入一个 NSTextField(特别是在我的代码中分配给名为“itemDescriptionField”的插座的那个)后,它不允许我选择其他文本字段或日期选择器。 The code can be found at:代码可以在以下位置找到:

https://github.com/Macintoshuser2/Inventory-Manager-macOS-Swift https://github.com/Macintoshuser2/Inventory-Manager-macOS-Swift

How can I go about resolving this?我该如何解决这个问题?

The description field has a number formatter.描述字段有一个数字格式化程序。 Type numbers or remove the number formatter.键入数字或删除数字格式化程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM