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];
zOrder を MaxIntegerに設定しようとしまし[alert window]
たが、まだ上に表示されません。
ここで何か問題がありますか?