Does NSOperation strongly or weakly reference dependencies?
Does NSOperation strongly or weakly reference dependencies?
- Subject: Does NSOperation strongly or weakly reference dependencies?
- From: "Jeffrey J. Early" <email@hidden>
- Date: Wed, 27 Apr 2011 12:01:31 -0700
I've hunted around an it's not clear to me whether or not an NSOperation instance strongly or weakly references its dependencies. Does anybody know the answer?
An NSOperationQueue strongly references the operations in its queue (which makes sense). It would also seem to make sense to have an NSOperation weakly reference its dependencies, but I don't see it in the documentation anywhere. I have a (probably not uncommon) situation where I don't want to keep the dependencies around (and therefore don't want to strongly root them). Obviously I could remove the dependencies after the operation has been computed, but I'd like to avoid worrying about that if possible.
Thanks!
Jeffrey_______________________________________________
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