Macos NSOpenPanel';中的NSSecureTextField出现奇怪错误;s辅助视图

Macos NSOpenPanel';中的NSSecureTextField出现奇怪错误;s辅助视图,macos,cocoa,sdk,nsopenpanel,Macos,Cocoa,Sdk,Nsopenpanel,在我的应用程序中,我使用带有附件视图的NSOpenPanel。除其他外,此视图还有一个NSSecureTextField。每次我打开面板时,此通知都会显示在日志中: NSSecureTextFieldCell detected a field editor ((null)) that is not a NSTextView subclass designed to work with the cell. Ignoring... 有人知道这到底意味着什么以及如何摆脱它吗? 现在它没有引起任何问

在我的应用程序中,我使用带有附件视图的NSOpenPanel。除其他外,此视图还有一个NSSecureTextField。每次我打开面板时,此通知都会显示在日志中:

NSSecureTextFieldCell detected a field editor ((null)) that is 
not a NSTextView subclass designed to work with the cell. Ignoring...
有人知道这到底意味着什么以及如何摆脱它吗? 现在它没有引起任何问题,但我想删除这个


非常感谢

您是否创建了NSSecureTextfield的子类?否。我只是使用IB将其粘贴到视图中并将其链接到控制器。您可以将代码粘贴到此处吗?我基本上使用的唯一代码是在*.h文件中:
@property(弱、非原子)IBOutlet NSSecureTextfield*passwordField
和在初始化方法中:
[self.passwordField.cell setPlaceholderString:NSLocalizedString(@“输入密码”,“@”)
稍后,我有时会检查字段的字符串值。您可以这样尝试[self.passwordField.cell setPlaceholderString:NSLocalizedString(@“输入密码”)];