> On Dec 4, 2015, at 12:05, Mike Throckmorton <mike1throckmor...@gmail.com> 
> wrote:
> 
> Quincey Morris Friday, December 4, 2015 10:04 AM
> 
>> That sounds like a definitive answer. So you’re asking us because … why?
> 
> Definitive for the leading question, but not the secondary:
> 
>> If strong, do I need to set the outlets to nil in the corresponding dealloc 
>> method?
> 
> I had tested this and it appeared as if I did not need to nil out the 
> reference at dealloc (this makes sense) but is it an on purpose behaviour 
> that is supported by the ARC implementation or is it some side effect that 
> may go away?
> 
> Most likely the former, but who likes to leave potential down the road a** 
> biters lying around.

Strong instance variables are automatically released on deallocation. There is 
no need to set them to nil in dealloc (in fact, if all your dealloc is doing is 
setting instance variables to nil, I would recommend not having a dealloc 
method at all).
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to