• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to display alert box in COCOA
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Creating small controls programmatically
  • Next by Date: Re: How to display alert box in COCOA
  • Previous by thread: Problem with command-line installer vs. graphical
  • Next by thread: Re: How to display alert box in COCOA
  • Index(es):
    • Date
    • Thread