• 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: Odd Crash when adding table columns manually
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd Crash when adding table columns manually


  • Subject: Re: Odd Crash when adding table columns manually
  • From: Graham Cox <email@hidden>
  • Date: Thu, 20 Jan 2011 11:35:10 +1100

On 20/01/2011, at 11:28 AM, Corbin Dunn wrote:

> 	for ( column in tableColumns )
> 	{
> 		[table removeTableColumn:column];
> 	}
>
> 	[table release];


Since the table owns its columns, why not just release the table - if it gets deallocated the columns will go too. As you said this was the clean-up when the window is deallocated, then the table WILL be deallocated here.

Is there some other reason you're going to these unnecessarily complicated lengths?


--Graham



_______________________________________________

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: Odd Crash when adding table columns manually
      • From: Eric Gorr <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>)

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