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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]