Re: NSOutlineview Datasource
Re: NSOutlineview Datasource
- Subject: Re: NSOutlineview Datasource
- From: Seth Willits <email@hidden>
- Date: Fri, 4 Feb 2005 11:24:24 -0800
On Feb 4, 2005, at 8:14 AM, Coleman Nitroy wrote:
To rephrase what i ment in a more humanly readable form. To delete an
object from the tree you need to know its parent correct? In a remove
function of the delegate to get rid of a selected row i need to say:
take the currently selected row's parent, and remove the object from
its children array that it is. My question is, how do you find out the
parent easily?
The way I have my trees setup, every child has an unretained reference
to its parent. When an item is destroyed, it releases all of its
children and that's that.
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"More praise of peace is easy but ineffective. What is needed is active
participation in the fight against war and everything that leads to it."
-- Albert Einstein
------------------------------------------------------------------------
---
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden