An animation context, which contains information about environment and state.
- macOS 10.5+
NSAnimation is analogous to
CATransaction and is similar in overall concept to
NSGraphics. Each thread maintains its own stack of nestable
NSAnimation instances, with each new instance initialized as a copy of the instance below (so, inheriting its current properties).
NSAnimation instances can be nested, allowing a given block of code to initiate animations using its own specified duration without affecting animations initiated by surrounding code.