• 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: Andy Lee <email@hidden>
  • Date: Thu, 20 Jan 2011 22:03:40 -0500
  • Sun-java-system-smtp-warning: Lines longer than SMTP allows found and wrapped.

On Jan 20, 2011, at 8:51 PM, Eric Gorr wrote:
> On Jan 20, 2011, at 4:27 PM, Corbin Dunn wrote:
[...]
>> 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.
>
> Bug filed:  rdar://8896270

I just submitted rdar://8896532, referencing Eric's bug, suggesting that before nilling out the delegate and dataSource, you should check whether they are == self.  Conceivably at some point the delegate and/or dataSource might have been set to some other object -- probably not in this example, but in general.  Admittedly it's probably very rare that this is an issue, and I'd be surprised if anyone on this list has ever run into a bug because of it.  On the other hand, if you're going to program defensively, why not go all the way?  On the *other* hand, maybe this is one of those things that should be at the programmer's discretion rather than a hard and fast rule.

--Andy (just now realizing I haven't been checking for == self myself)

_______________________________________________

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

References: 
 >Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Peter Lübke <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Keary Suska <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Lee Ann Rucker <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Corbin Dunn <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Graham Cox <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Graham Cox <email@hidden>)
 >Re: Odd Crash when adding table columns manually (From: Eric Gorr <email@hidden>)
 >Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Eric Gorr <email@hidden>)
 >Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Kyle Sluder <email@hidden>)
 >Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Eric Gorr <email@hidden>)
 >Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Corbin Dunn <email@hidden>)
 >Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually ) (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )
  • Next by Date: Re: Cleaning up weak references ( was 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