Slide animation in NSOutlineView

I have done quite a lot of Googling, but still have not found a suitable solution for animating the NSOutlineView extension. I am trying to imitate a "rolling" animation when expanding / collapsing lines. Does anyone know a good strategy for this?

Animation:

}} Folder 1

To expand and look like this:

}} Folder 1

}}}}} Paragraph 1

}}}}} Point 2

}}}}} Point 3

+3
source share
2 answers

Take a look at this project: TLAnimatingOutlineview

+1
source

, . expandItem:/collapseItem: NSOutlineView - animator.

NSOutline *outlineView = ...;
id item = ...;
[[outlineView animator] collapseItem:item];

, / , nil.

: NSAnimatablePropertyContainer

0

Source: https://habr.com/ru/post/1728000/


All Articles