【发布时间】:2012-12-10 04:50:20
【问题描述】:
我在我的 mac 游戏中使用 cocos2d。在全屏模式下,警报窗口位于主窗口下方,无法点击。这是我的代码:
NSAlert* alert = [[NSAlert alloc] init];
alert.alertStyle = NSWarningAlertStyle;
[alert addButtonWithTitle:[Helper getLocalizedStringWithString:@"ok"]];
alert.messageText = [Helper getLocalizedStringWithString:@"you need to play through classic game and expert mode"];
switch ([alert runModal]) {
case NSAlertFirstButtonReturn:
break;
default:
break;
}
[alert release];
我尝试将[alert window]s zOrder 设置为 MaxInteger,但仍未显示在顶部。
这里有什么问题吗?
【问题讨论】:
标签: objective-c macos cocos2d-iphone fullscreen