Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
- Subject: Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
- From: Abdul Sowayan <email@hidden>
- Date: Thu, 20 Jan 2011 14:50:21 -0500
- Thread-topic: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
Hi folks,
I'm trying to figure out a clear guideline on how to handle weak references.
Let's consider the following scenarios:
1- Say I have a button, and set its action/target (via a nib file) to call
method on the controller. In the controller dealloc method, should the
controller set the action/target of the button to nill?
2- Say I have a table view, and set its datasource/delegate (via a nib file)
to the controller. In the controller dealloc method, should the controller
set the datasource/delegate of the tableview to nill?
What I'm interested in is what is the right thing to do here. That is, is
the lack of explicit setting to nil of action/datasource/delegate to nill a
bug?
Thanks,
Abdul
_______________________________________________
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