• 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
NSOutlineView doesn't flush cache?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView doesn't flush cache?


  • Subject: NSOutlineView doesn't flush cache?
  • From: Brian Webster <email@hidden>
  • Date: Wed, 12 Jun 2002 14:02:43 -0500

I'm working with an NSOutlineView that displays different sets of data depending on a selection in the window. Each time an item is selected, I update the contents of the outline view and then call reloadData to get the outline view to refresh.

This works fine, but it's exhibiting a rather strange behavior. First I select one set of data to display and twist down some triangles in the outline. Then I select a second set of data, and it displays fine. Then, I switch back to the first set of data, but the triangles are twisted down for the same objects they were last time. Furthermore, if I have two sets of data that share the same object, twisting down the triangle for a given object in one set will cause that some object to be twisted down when displaying the other set.

From what I can tell, the problem is that the outline view is keeping an internal cache of these items, but is not flushing them out when I call reloadData. Is this the intended behavior of the outline view? Is there any way around it?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Drag and Drop Oddities
  • Next by Date: Memory Leak?
  • Previous by thread: Re: copyPath and FilePackages
  • Next by thread: Re: NSOutlineView doesn't flush cache?
  • Index(es):
    • Date
    • Thread