我想在NSAlert, , ?beginSheetModalForWindowNSWarningAlertStyleNSInformationalAlertStyleNSCriticalAlertStyle
此外,如果我使用功能性 API,如NSBeginAlertSheet, NSBeginCriticalAlertSheet,如何从中删除图标?
你不能!NSAlert 始终显示应用程序图标:https ://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSAlert_Class/Reference/Reference.html
图标:警报图标。nil 恢复应用程序图标。
讨论:默认情况下,图像是应用程序图标,通过应用程序包的 NSApplicationIcon 属性访问。
考虑子类 NSAlert 或创建自己的对话框。