On Sep 5, 2009, at 11:45, Kyle Sluder wrote:

On Sep 5, 2009, at 11:14 AM, Joshua Garnham <[email protected] > 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 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]

Reply via email to