• 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
Retain the expanded items of NSOutlineView on reload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Getting the users typed text in a NSComboBox textfield
  • Next by Date: Undo with table view and array controller
  • Previous by thread: Re: Getting the users typed text in a NSComboBox textfield
  • Next by thread: Undo with table view and array controller
  • Index(es):
    • Date
    • Thread