Reloading data from a NSOutlineView and then repositionning scroll bars....
Reloading data from a NSOutlineView and then repositionning scroll bars....
- Subject: Reloading data from a NSOutlineView and then repositionning scroll bars....
- From: Jérome Foucher <email@hidden>
- Date: Thu, 27 Mar 2003 15:28:28 +0100
Hello,
I've got a NSOutlineView that lists the content of a folder. It has a
Refresh button to reload all the structure.
What I do is to force-reloading children of the root item. Then using a
hash table I re-expand folders that were previously expanded (btw, if
NSOutlineView already has such a feature, I didn't find it, but would
really be interested to know it).
It works fine except that if the outline view was scrolled before
clicking on the Refresh button, the scroll bars are resetted to 0.
Is there a way to avoid that ? Like for instance saving the previous
scroll bars positions and resetting them after rebuilding the list ?
Thanks
Jerome
_______________________________________________
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.