• 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
NSOutlineView Storing/Restoring Disclosure Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView Storing/Restoring Disclosure Paths


  • Subject: NSOutlineView Storing/Restoring Disclosure Paths
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 30 Apr 2013 12:35:37 -0500
  • Thread-topic: NSOutlineView Storing/Restoring Disclosure Paths

We have a hierarchy, displayed in an NSOutlineView.  We also allow the user
to specify the root at any of the top two levels.  When moving the root down
the tree, if there is no selection, the new root is the first element of the
top-level tree. If rows are selected, we use the first index path to
determine the new root.  Going back up, we load the higher-level root and
select the item that we moved up from.  This all works. However, it would be
nice if we had a couple of additional disclosure options available.  One
option would be to keep selected paths selected and disclosed when moving
between root levels.  Another option would be to keep ALL relevant
disclosures disclosed when changing root levels.  Is there any way to do
this?

There appears to be a means  (a check box in IB) to save disclosure paths
for restoration when reopening a document.  So that info must be available
somewhere, although apparently not available to the developer.  Other than
building a storable disclosure tree and using it (appropriately modified) to
(laboriously)  re-disclose paths, is there a better way?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Re: Overlapping sibling views
  • Next by Date: Re: Overlapping sibling views
  • Previous by thread: Animate magnifyToFitRect:
  • Next by thread: NSTextField binding returns nil not empty string
  • Index(es):
    • Date
    • Thread