faqts : Computers : Programming : Application Frameworks : Macintosh : Cocoa

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

How do I get the result of an NSAlertPanel?

Apr 29th, 2002 20:19
Christopher Holland, Eric Peyton


When you run one of the alert panel functions it will return 
the result to you. So, you would call it something like this:
result = NSRunInformationalAlertPanel(@"Title", @"InformationText", @"OK", @"Later", @"Cancel",nil);
Then you can check result for what you want to do next.