NSOutlineview, data changing from outside the outlineview's events
NSOutlineview, data changing from outside the outlineview's events
- Subject: NSOutlineview, data changing from outside the outlineview's events
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 6 Jun 2005 19:29:05 +0100
Lets say I have an NSOutlineView, and some buttons to manipulate the
data in the outlineview.
So, I press a button. This button calls a function to work on some
data. The data that my NSOutLineViewDataSource displays, is now
altered by this function.
Then what do I do? How do I tell the outlineview that my data is
changed, and how to get it to keep as much of the old expansion and
selection information as possible?
I tried reloadData, but that lost all the expansion and selection.
I tried reloadItem, but that would not work on nil, which is actually
the root. The items of the root may be changed, after all.
So what next?
The DragNDropOutlineView example actually only changes the data from
events passed to the NSOutlineViewDataSource, from the NSOutlineView.
But I don't have the luxury of doing this, alas.
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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