NSPopover custom animation
Question
Is there any way to create a custom animation for NSPopover?
I can switch off the animation by using the animates
property, however since NSPopover is a subclass of NSResponder
and not a proper view or window I can't figure out how to animate it myself.
Solution
There is no way to hook into the animation system of NSPopover
. I did a class-dump of the interface and it doesn't even look like there are any useful private methods.
If you want a custom animated popover you will need to implement it from scratch (which is not that hard, really).
OTHER TIPS
The popover will animate depending on the view it is displaying. By just resizing the view in a particular way will make the popover animate while it's resizing the view. Of course, this will only work if the animation you want is fairly simple and can be implemented to the popover's view.