我有一个基于 NSDocument 的应用程序,启用了自动保存。
I'd like to prevent this popup from showing:
我尝试从 NSWindow 的 –title、–representedFilename 和 –representedURL 返回 nil,这些隐藏标题有效地隐藏了标题,但对向下的公开指示器和弹出窗口没有影响。
有什么办法可以阻止出现此弹出窗口吗?
我能够通过覆盖 NSWindow 来防止显示按钮
+ (NSButton *)standardWindowButton:(NSWindowButton)windowButtonKind forStyleMask:(NSUInteger)windowStyle
并返回零NSWindowDocumentVersionsButton
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)