JNWAnimatableWindow
JNWAnimatableWindow copied to clipboard
Animate NSWindow using a layer.
Fix animation not working: I don't know what Apple has changed. After trying with a simple demo i found this solution. Hope this work for more guys.
I have noticed that every so often there is a brief flash of the window in its original coordinates when calling animateOutExplicitly. This can be seen in the demo project...
In the demo "Animate out" immediately hides the window without any animation. "Animate Frame" increases the window size immediately. The other examples seem to be working fine and the layer...
I just found NSAnimatablePropertyContainer. Then I found your lib on github.
On every bordered `NSWindow`, there's a thin 1px border. I use `[NSColor colorWithCalibratedWhite:0.10f alpha: 0.15f]` to mimic this border, but it may not be wholly accurate.