> On 4 Jan 2015, at 21:22, Charles Jenkins <cejw...@gmail.com> wrote:
> 
> Quincy:  
> 
> Thanks for the answer! But something is still missing...
> 
> moveItemAtIndex:… does indeed move the items around to the proper places in 
> the tree, but the outline view control doesn’t update disclosure triangles. 
> Meaning, if I drag an item’s only child someplace else, the now-childless 
> parent keeps its useless disclosure triangle. Worse, if I drop a new child 
> onto an item that formerly did not have children, the needed disclosure 
> triangle doesn’t appear, and then there’s no way in that session to 
> manipulate the child item again.  
> 
> Is there a way to indicate that disclosure triangles and item icons should be 
> updated after the move animation ends?
> 
> —

No - if your changes change the status of an item from having children to not 
having them or vice-versa and you want disclosure triangles to update, you need 
to reload that row as well to get outlineView:isItemExpandable called again to 
update the disclosure triangle. I did this a couple of weeks ago, it’s very 
easy. 

The outline view doesn’t imply for itself where to show disclosure triangles, 
it asks the delegate, you have to force it to ask again. For that you reload 
that one row. 
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to