I can implement an animation using animator in mac os cocoa, like
[[view animator] setFrame:newFrame];
but my problem is I have to animate some points which are properties of view. I can do it like the following iPhone code:
[UIView animateWithDuration:0.3 animations:^{
for (Point point in self.points) {
point.x += 10;
}
} completion:^(BOOL finished) {
}];
}];
I want to know how can I do this in mac ox cocoa?
Usually for NSView animation you have to override standart animation, that is used by animator.
The key for the animation is the property you want to animate.
If you don’t need delegate you can use such code:
If you need more complex animations you can create an overlay window with layer hosting contentview and animate layers with a view screenshot inside.