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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to