• 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
Re: How to display alert box in COCOA
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display alert box in COCOA


  • Subject: Re: How to display alert box in COCOA
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 5 Dec 2003 04:37:20 -0800

On Dec 5, 2003, at 3:57 AM, Shashikant Hire wrote:

I want to display an alert box. Application run successfully but alert is
displayed
on screen.

Isn't that the point of creating an alert panel? <;*)

2003-12-05 05:34:33.489 Hello[851] *** _NSAutotreleaseNoPool(): Object
0x9af70 of
class NSCFString autoreleased with no pool in place - just leaking

If you're getting this warning, it means you created a new thread and didn't set up an autorelease pool in that thread. You can do so by just including one line of code at the top of the thread's entry method:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

And before your thread ends:

[pool release];

BTW, did you have a question for the list?

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything happen to him [Nemo]; then, nothing would ever happen to him." - Dory, from the movie "Finding Nemo"
_______________________________________________
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.
References: 
 >How to display alert box in COCOA (From: "Shashikant Hire" <email@hidden>)

  • Prev by Date: How to display alert box in COCOA
  • Next by Date: Drawing in Cocoa
  • Previous by thread: How to display alert box in COCOA
  • Next by thread: Re: How to display alert box in COCOA
  • Index(es):
    • Date
    • Thread