NSWindow 在 Lion 上失去了小型化按钮
我在 OSX Lion 上进入/退出全屏时遇到此问题。我尝试重新应用样式蒙版,但没有成功:
NSUInteger styleMask = NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTitledWindowMask;
styleMask |= NSTexturedBackgroundWindowMask;
window = [[NSWindow alloc] initWithContentRect:windowFrame
styleMask: styleMask
backing:NSBackingStoreBuffered
defer:NO];
并且全屏通知
(void)didExitFull:(NSNotification *)notification {
NSUInteger styleMask=[window styleMask];
[window setStyleMask:styleMask|NSMiniaturizableWindowMask];
}
似乎小型化按钮没有再次启用。 我还在 MacOSX 10.6 上此处发现了此 UI 可用性问题
I'm having this problem on OSX Lion when entering/exiting fullscreen. I tried to reapply the style mask without success:
NSUInteger styleMask = NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTitledWindowMask;
styleMask |= NSTexturedBackgroundWindowMask;
window = [[NSWindow alloc] initWithContentRect:windowFrame
styleMask: styleMask
backing:NSBackingStoreBuffered
defer:NO];
and the fullscreen notification
(void)didExitFull:(NSNotification *)notification {
NSUInteger styleMask=[window styleMask];
[window setStyleMask:styleMask|NSMiniaturizableWindowMask];
}
It seems that the miniaturize button is not getting enable again.
I also found this UI Usability problems on MacOSX 10.6 here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请重写以下函数
,并且退出全屏后不要设置 styleMask。让系统来做吧。
Please override the following function
And do not set styleMask after exitFullscreen. Let the system do it.