Not sure about autorelease pools in NSOperations
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