Re: Peoblems with expanding items in NSOutlineView
Re: Peoblems with expanding items in NSOutlineView
- Subject: Re: Peoblems with expanding items in NSOutlineView
- From: Brendan Younger <email@hidden>
- Date: Wed, 4 Jul 2001 17:09:49 -0500
I've been working with NSOutlineView too recently and the way I've been
handling this problem is to have a isDirty flag for each expandable
item. Then, in my dataSource, I check to see if the item is dirty, get
its new children and then return the number of children, each individual
child, etc. I think the oulineView goes through and if the the number
of children of an item is the same or the first one or two items are the
same as those in its internal storage, it skips updating any more to
save time. Please tell me if this solves your problem or if you're
speaking of a different one which I have yet to run up against.
Brendan Younger