# \[Feature request\] Option to disable expand/collapse folder animation in list view

**URL:** <https://discuss.binaryage.com/t/feature-request-option-to-disable-expand-collapse-folder-animation-in-list-view/8602>\
**Category:** TotalFinder\
**Tags:** feature-request\
**Created:** [June 24, 2023, 12:43am UTC](https://discuss.binaryage.com/t/feature-request-option-to-disable-expand-collapse-folder-animation-in-list-view/8602 "2023-06-24T00:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_B](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/leo_b/32/3136_2.png) [@Leo\_B](https://discuss.binaryage.com/u/Leo_B)\
**Post date:** [June 24, 2023, 12:43am UTC](https://discuss.binaryage.com/t/feature-request-option-to-disable-expand-collapse-folder-animation-in-list-view/8602/1 "2023-06-24T00:43:56Z")

</div>

I wonder if you can add an option to TotalFinder to disable the expand/collapse folder animation in the list view?

In a regular `NSOutlineView` (but not in the Finder) it’s controlled by this private method:

`- (BOOL)_shouldAnimateExpandCollapse`

This animation annoys me ever since it was introduced back in Lion (not only in Finder, but in Finder in particular).  
` `  
` `

_Some background:_

Several years ago I was able to disable this animation everywhere EXCEPT the Finder by creating my own plug-in for MacForge.

As to the Finder, then I spent several days exploring its class headers but I was never successful in disabling this animation in the Finder.

Like I mentioned, I was able to disable expand/collapse animation of NSOutlineView everywhere else (including Xcode). That’s all in the past though as MacForge doesn’t work on M1 Macs which I’m using for over a year by now.

As I’m sure you have much better and deeper knowledge of Finder classes than I could ever achieve, I wonder if it’s possible to disable this animation in the Finder?

Thanks!  
Leo

---

<div class="post-metadata">

**Author:** ![akemin\_dayo](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/akemin_dayo/32/3414_2.png) [@akemin\_dayo](https://discuss.binaryage.com/u/akemin_dayo)\
**Post date:** [June 26, 2023, 1:23am UTC](https://discuss.binaryage.com/t/feature-request-option-to-disable-expand-collapse-folder-animation-in-list-view/8602/2 "2023-06-26T01:23:56Z")

</div>

@Leo_B I’ve made a note of this as a feature request.

Weird that your `NSOutlineView` hook didn’t work for Finder, though. As far as I’m aware, Finder’s `TListView` and `TOutlineView` are direct subclasses of `NSOutlineView` so it _should_ just work.

Perhaps MacForge was having trouble injecting into Finder or something, that’s my best guess.

Also, I think MacForge is supposed to work on Apple Silicon now? It should just require the same SIP weakening procedure as TotalFinder.

I’ve [said this before](https://twitter.com/akemin_dayo/status/1519603131499261952), but I really do wish macOS tweak development was as easy as it is on iOS.

There _are_ multiple projects coming from the iOS jailbreaking community that are beginning to support macOS as a target platform (notably [Procursus](https://github.com/ProcursusTeam/Procursus) and [ElleKit](https://github.com/evelyneee/ellekit) — although the latter lacks x86\_64 support as of current writing), but everything’s still very far from being ready for end user usage.

---

<div class="post-metadata">

**Author:** ![Leo\_B](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/leo_b/32/3136_2.png) [@Leo\_B](https://discuss.binaryage.com/u/Leo_B)\
**Post date:** [June 28, 2023, 4:47am UTC](https://discuss.binaryage.com/t/feature-request-option-to-disable-expand-collapse-folder-animation-in-list-view/8602/3 "2023-06-28T04:47:03Z")

</div>

@akemin_dayo Thanks for the info!

MacForge doesn’t work for me on M1 (with all the SIP weakening). I tried their last beta which is supposed to support M1. But every time I launch it and its window appears, both of my M1 Macs just immediately log out. MacForge also isn’t maintained anymore for at least 2 years by now anyway.

Of the two projects you mentioned, it looks like I can understand ElleKit (in theory at least). Plus I don’t need x86\_64 support anyway. My practical experience with Swift is still near zero but I’m pretty familiar with its syntax by now more or less.

I was able to build ElleKit and it looks like the only thing I need is `MSHookClassPair`. I’ll try to play with it when I have time.

P.S. If you ever decide to produce a tool that disables `_shouldAnimateExpandCollapse` on the system level (and possibly some other animations that can’t be disabled otherwise), I’ll be happy to pay for this, too!
