Retain the expanded items of NSOutlineView on reload
Retain the expanded items of NSOutlineView on reload
- Subject: Retain the expanded items of NSOutlineView on reload
- From: "vibhatha v" <email@hidden>
- Date: Mon, 18 Dec 2006 19:47:09 +0530
Hi,
I have an NSOutlineView and i am using NSTreeController to load data into my
outline view.
The problem is, when i try to reload my outline view, i.e. refresh
functionality, the outline view is reloaded but the state of the expanded
nodes are not maintained.
Consider i have expanded some of the items.
Now when i refersh the outline view, all the items appear collapsed.
I want to retain the state of the items even after refresh.
i.e. the expanded items should remain expanded and the collapsed items
should remain collapsed after refresh.
Can anyone please suggest me as to how can i have this functionality?
Is there any specific code that i should write to retain the state of
expanded items?
Is there any built-in functions in cocoa that do this?
Thanks and Regards,
Vibhatha.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden