• 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: Ondra Cada <email@hidden>
  • Date: Mon, 17 Sep 2001 19:18:44 +0200

Rosyna,

>>>>>> Rosyna (R) wrote at Mon, 17 Sep 2001 07:47:08 -0700:
R> -(void) thread:(id)anObject

If you launch this thread always with ...withObject:nil, you can save the
effort and use somewhat more appropriate "-(void)thread".

R> {
R> NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
R> // much more
R> [pool release];
R> }

Then the problem would be elsewhere. This should catch all autoreleases
inside "much more" (always did for me, at the very least).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Object Allocations
      • From: Rosyna <email@hidden>
References: 
 >Re: Object Allocations (From: "John C. Randolph" <email@hidden>)
 >Re: Object Allocations (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Quickly swapping NSImages / NSImageReps
  • Next by Date: Problem with encodeWithCoder and pointers
  • Previous by thread: Re: Object Allocations
  • Next by thread: Re: Object Allocations
  • Index(es):
    • Date
    • Thread