Re: Making an Outline View delete a rows children when the parent is deleted.
Re: Making an Outline View delete a rows children when the parent is deleted.
- Subject: Re: Making an Outline View delete a rows children when the parent is deleted.
- From: Quincey Morris <email@hidden>
- Date: Sat, 5 Sep 2009 12:20:51 -0700
On Sep 5, 2009, at 11:45, Kyle Sluder wrote:
On Sep 5, 2009, at 11:14 AM, Joshua Garnham <email@hidden
> wrote:
How would I make a rows children be deleted when the parent is
deleted?
This is a model behavior, not a view behavior.
Well, yes, but OP's question wasn't phrased very well, so it may in
fact be about the view. "Delete" may mean "remove from the tree
structure that contains it" or "dispose of the object after it's been
removed from the tree structure".
Accordingly, the answer to the question that the OP was trying to ask
might be:
-- Call 'reloadData' on the outline view (if there's a data source
involved).
-- Ensure KVO compliance when updating the properties to which the
outline view is bound.
-- Dispose of the objects when you no longer want them.
We'd need a better question to give a better answer. :)
_______________________________________________
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