• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 16:33:44 -0500
  • Thread-topic: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )

Hi Corbin,


> I wrote that sample, and gave the WWDC talk based on it a few years ago. I
> also "own" NSTableView.
>
> Yes, please do file a bug. The sample should set the delegate/datasource to
> nil, as it is good practice to do so, and we can update the sample.

Thanks for the clarification, it is very helpful. So the right thing to do
with delegates/datasources is to set them to nil.

What about target/action on something like a button?

Would you say that for every control in a nib, one has to set the
delegate/datasource/action to nil? While this might seem like a silly
question, most books/examples I read don't do this so I wanted to be clear
on what the right thing to do is.

Thanks again,
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

  • Follow-Ups:
    • Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
      • From: Corbin Dunn <email@hidden>
References: 
 >Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
  • Next by Date: Re: Odd Crash when adding table columns manually
  • Previous by thread: Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
  • Next by thread: Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
  • Index(es):
    • Date
    • Thread