• 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
Not sure about autorelease pools in NSOperations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not sure about autorelease pools in NSOperations


  • Subject: Not sure about autorelease pools in NSOperations
  • From: G S <email@hidden>
  • Date: Mon, 11 Apr 2011 19:38:28 -0700

Hi all.

I haven't really managed autorelease pools explicitly before, but the
NSOperation doc says to use one in your NSOperation derivatives.  My
question is where to put it.  The example shows the pool being created and
released in the main() function, but I don't really allocate anything
there.  All of that is done in my init function, which sets up a bunch of
data objects that the operation will use when it executes.

Since the data objects are created in one function and then used in another,
what's the proper way to use an autorelease pool here?

Thanks for any insight.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Not sure about autorelease pools in NSOperations
      • From: Wim Lewis <email@hidden>
  • Prev by Date: Re: AVFoundation and OpenGL?
  • Next by Date: SimpleTextInput sample code - caretRect not calculated correctly at times
  • Previous by thread: Re: PDF Inverted colors
  • Next by thread: Re: Not sure about autorelease pools in NSOperations
  • Index(es):
    • Date
    • Thread