• 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: Object Allocations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object Allocations


  • Subject: Re: Object Allocations
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 17 Sep 2001 09:10:17 -0700

On Monday, September 17, 2001, at 07:47 AM, Rosyna wrote:

-(void) awakeFromNib
{
// more
[NSThread detachNewThreadSelector:@selector(thread:) toTarget:self withObject:nil];
// more

}

then

-(void) thread:(id)anObject
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// much more
[pool release];
}

Ack, at 9/17/01, John C. Randolph said:

Let's see the code you're using to spawn the thread and create the pool.

Well, I'm stumped. That should do the trick.

-jcr

"I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.


References: 
 >Re: Object Allocations (From: Rosyna <email@hidden>)

  • Prev by Date: Re: distributed processing ad multiThreading
  • Next by Date: Cocoa Game Development
  • Previous by thread: Re: Object Allocations
  • Next by thread: Re: Object Allocations
  • Index(es):
    • Date
    • Thread