• 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: cocoa-dev digest, Vol 2 #36 - 17 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Newbie Q: How to implement multiple views occupying the same space?
  • Next by Date: SGSetDataProc()
  • Previous by thread: Re: best way to launch an application with an NSArray argument
  • Next by thread: SGSetDataProc()
  • Index(es):
    • Date
    • Thread