• 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
Re: Getting the Item from NSOutlineView's Notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Item from NSOutlineView's Notifications


  • Subject: Re: Getting the Item from NSOutlineView's Notifications
  • From: Seth Willits <email@hidden>
  • Date: Thu, 30 Jun 2005 18:15:32 -0700

On Jun 30, 2005, at 6:06 PM, Dan S. Camper wrote:

The method returns an array of UUIDs that I can
use find my objects again to re-expand them ([self expandItem]). I run this
just before closing my window, but you could trigger it at other places
(even that notification).

I could do it on the window close, but in this project, the document is autosaved instantly. I think the overhead incurred by writing the expanded value to a database has got to be very small, but I won't know until it's actually done.


The one minor gotcha I discovered is this: If you start with a
fully-collapsed list and try to re-expand, you must expand parents before
children or it won't work. If you re-expand in the same order as the array
above, it will work.

Right. After the list is loaded I can start from the top row and iterate through them (row by row from top to bottom) and expand each parent as needed. That'll work, though I'm most worried about the visual implications. It hopefully won't have any, but I'm not yet positive about that.



Thanks for the suggestions,

--
Seth Willits

_______________________________________________
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


References: 
 >Re: Getting the Item from NSOutlineView's Notifications (From: "Dan S. Camper" <email@hidden>)

  • Prev by Date: Re: Pro-App Look
  • Next by Date: Re: Getting the Item from NSOutlineView's Notifications
  • Previous by thread: Re: Getting the Item from NSOutlineView's Notifications
  • Next by thread: Flat Button Controls in Tiger
  • Index(es):
    • Date
    • Thread