Check if NSAnimationContext runAnimationGroup cancelled or succeeded
问题 I'm animating a view (by revealing it) after which I need to post a notification (once the animation completes). However the way the app's designed, there's another notification sent out when the view is hidden (via animation). So essentially I have a 'showView' and a 'hideView' method. Each do something like so: [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) { [context setDuration: 0.25]; [[myView animator] setAlphaValue: 0]; } completionHandler:^{ // post notification