Re: Issue with -[NSOutlineView autosaveExpandedItems] - SOLVED
Re: Issue with -[NSOutlineView autosaveExpandedItems] - SOLVED
- Subject: Re: Issue with -[NSOutlineView autosaveExpandedItems] - SOLVED
- From: Lee Ann Rucker <email@hidden>
- Date: Fri, 11 Jul 2014 19:10:49 +0000
- Thread-topic: Issue with -[NSOutlineView autosaveExpandedItems] - SOLVED
On Jul 11, 2014, at 5:35 AM, Bill Cheeseman wrote:
>
>
> 4. In -awakeFromNib or equivalent, set up the initial expanded/collapsed state of rows in the outline view only once, at first launch on a given computer. Thereafter, leave it to the datasource methods to expand or collapse the outline view at launch based on the autosaved information from a previous run.
Also, don't use the presence or absence of the autosaved prefs item as an indicator of whether you've autoexpanded already, because the pref only saves the array of expanded items and if everything's collapsed, it'll just remove the pref entirely.
_______________________________________________
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