NSOutlineView doesn't flush cache?
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.