How to display alert box in COCOA
How to display alert box in COCOA
- Subject: How to display alert box in COCOA
- From: "Shashikant Hire" <email@hidden>
- Date: Fri, 5 Dec 2003 17:27:15 +0530
Hello
I want to display an alert box. Application run successfully but alert is
displayed
on screen. Following message is displayed in output window of Project
Builder.
2003-12-05 05:34:33.489 Hello[851] *** _NSAutotreleaseNoPool(): Object
0x9af70 of
class NSCFString autoreleased with no pool in place - just leaking
Following is code.
int retCode = 10;
NSString *theAlertMessage = [NSString stringWithFormat:@"Return code is %d",
retCode];
NSRunAlertPanel( @"Error", theAlertMessage, @"OK", nil, nil );
Regards
SBH
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.