MMTabBarView
MMTabBarView copied to clipboard
viewDidEndLiveResize in MMTabBarView causes window to freeze on Mojave when entering full screen window mode.
It seems to have something to do with viewDidEndLiveResize:
for (MMAttachedTabBarButton *aButton in [self attachedButtons]) {
[[aButton indicator] startAnimation:self];
}
[self _checkWindowFrame];
[self update:NO];
}
If you comment out [[aButton indicator] startAnimation:self]; then it no longer freezes.
If the window is frozen, clicking outside the app allows it to complete the transition to full screen mode. So even just clicking on an icon in the Dock allows it to continue.
I confirm the problem, and that removing the animations in -viewDidEndLiveResize: work around it.
I switched:
[[aButton indicator] startAnimation:self];
to
[[aButton indicator] performSelector:@selector(startAnimation:) withObject:nil afterDelay:0.0];
And that sorted the issue as well.