• 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
Basic thread example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic thread example?


  • Subject: Basic thread example?
  • From: email@hidden
  • Date: Fri, 27 Feb 2004 17:20:56 -0800

does anyone know if there is one floating around, i don't want my users
to sit and go wtf is this thing doing anything so i want to make a
thread to perform my method and show its progress with a threaded
progress bar but i can't seem to find a basic example i've got this
code but i get mem leaks?

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
BOOL keepGoing = YES;

while( keepGoing )
{
do some stuff
}

keepGoing = NO;
[pool release];
_______________________________________________
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.


  • Follow-Ups:
    • Re: Basic thread example?
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Splitting strings....
  • Next by Date: very specialized event handling
  • Previous by thread: Re: Splitting strings....
  • Next by thread: Re: Basic thread example?
  • Index(es):
    • Date
    • Thread