• 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: Making an Outline View delete a rows children when the parent is deleted.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Making an Outline View delete a rows children when the parent is deleted. (From: Joshua Garnham <email@hidden>)
 >Re: Making an Outline View delete a rows children when the parent is deleted. (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: crash question NSString
  • Next by Date: Re: crash question NSString
  • Previous by thread: Re: Making an Outline View delete a rows children when the parent is deleted.
  • Next by thread: Re: Making an Outline View delete a rows children when the parent is deleted.
  • Index(es):
    • Date
    • Thread