Re: cocoa-dev digest, Vol 2 #36 - 17 msgs
Re: cocoa-dev digest, Vol 2 #36 - 17 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #36 - 17 msgs
- From: Simon Stapleton <email@hidden>
- Date: Fri, 18 Jan 2002 11:50:03 +0000 (GMT)
>
Subject: Re: Reloading root of NSOutlineView
>
From: Gore <email@hidden>
>
To: email@hidden
>
>
if your root object includes 0 children, then there will not be
>
anything displayed, but if you are adding children to it then make
>
sure you are using [myOutlineView reloadData]; AFTER adding the
>
child object to your root object.
Not to mention remembering to set the outlineview's data source -
yes, I've been bitten by that one ;-)
Remember, you should only be using reloadItem if the number of
objects / the actual objects to be displayed at root level have
actually changed - if the sublevels or contents of a single item have
changed, it's a lot more efficient to simply reload that specific
item.
Simon
--
PGP Key ID : 0x50D0698D
--
If the answer isn\'t obvious, the question is a distraction. Go find
an easier question.