最終更新:2009-03-31 (火) 10:16:36 (5477d)
NSRunAlertPanel
Top / NSRunAlertPanel
MessageBoxみたいなもの。ダイアログ?を表示するCocoaのCの関数。
例
int choice = NSRunAlertPanel(NSString* title, NSString* msgFormat, NSString* defaultButton, NSString* alternateButton, NSString* otherButton); switch(choice){ case NSAlertDefaultReturn: break; case NSAlertAlternateReturn: break; case NSAlertOtherReturn: break; }
メモ
- 非表示でいいときはnilを指定