Re: Another -[NSOutlineView autosaveExpandedItems] bug

2014-07-18 Thread Bill Cheeseman
On Jul 18, 2014, at 3:12 PM, Ken Thomases wrote: > Is there a reason you didn't just directly enumerate the objects in the > collection? Constructing an index set for all of the items, enumerating > that, and then looking up the items by the index seems cumbersome. > >[[self sourceListCo

Re: Another -[NSOutlineView autosaveExpandedItems] bug

2014-07-18 Thread Bill Cheeseman
On Jul 18, 2014, at 3:12 PM, Ken Thomases wrote: > Setting aside the NSOutlineView bug you're describing, there are issues with > your code: > > On Jul 18, 2014, at 1:19 PM, Bill Cheeseman wrote: > >> - (IBAction)expandAllRows:(id)sender { >> AWRSourceListOutlineView *outlineView = [self s

Re: Another -[NSOutlineView autosaveExpandedItems] bug

2014-07-18 Thread Ken Thomases
Setting aside the NSOutlineView bug you're describing, there are issues with your code: On Jul 18, 2014, at 1:19 PM, Bill Cheeseman wrote: > - (IBAction)expandAllRows:(id)sender { >AWRSourceListOutlineView *outlineView = [self sourceListOutlineView]; >NSIndexSet *topLevelItemIndexes = [

Another -[NSOutlineView autosaveExpandedItems] bug

2014-07-18 Thread Bill Cheeseman
I have found and reported another bug in the -[NSOutlineView autosaveExpandedItems] mechanism. Here is a brief summary of my bug report #17728176: Summary: In NSOutlineView, setting autosaveExpandedItems to YES is supposed to cause the outline to remember the expanded/collapsed state of its row