• 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
easy way to refresh branch of NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

easy way to refresh branch of NSOutlineView


  • Subject: easy way to refresh branch of NSOutlineView
  • From: Duncan Campbell <email@hidden>
  • Date: Mon, 27 Jun 2005 21:13:07 +1000

My problem:

I am creating a simple file browser using an NSOutlineView. I have it hooked up to be notified when a file changes in a folder that is current being displayed as expanded.

My problem is in re-drawing the appropriate branch when I receive this notification. Because I use a datasource to populate my view, if I force a refresh of a branch, then I lose the state of all the sub- branches (because, obviously they are being re-calculated as new items in the datasource).

Can anyone suggest an idea of how I may accomplish this? I am thinking of something like:

[outlineView reloadItemsWhileMaintainingExpandedState] or something...


Duncan Campbell ===================== http://www.duncanandsarah.com


_______________________________________________ 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
  • Follow-Ups:
    • Re: easy way to refresh branch of NSOutlineView
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: centering view in nstabviewitem
  • Next by Date: Re: easy way to refresh branch of NSOutlineView
  • Previous by thread: centering view in nstabviewitem
  • Next by thread: Re: easy way to refresh branch of NSOutlineView
  • Index(es):
    • Date
    • Thread