Platforms to show: All Mac Windows Linux Cross-Platform

NSAnimationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Objects of the NSAnimation class manage the timing and progress of animations in the user interface.

The class also lets you link together multiple animations so that when one animation ends another one starts. It does not provide any drawing support for animation and does not directly deal with views, targets, or actions.

NSAnimation objects have several characteristics, including duration, frame rate, and animation curve, which describes the relative speed of the animation over its course. You can set progress marks in an animation, each of which specifies a percentage of the animation completed; when an animation reaches a progress mark, it notifies its delegate and posts a notification to any observers. Animations execute in one of three blocking modes: blocking, non-blocking on the main thread, and non-blocking on a separate thread. The non-blocking modes permit the handling of user events while the animation is running.

Constants

Constant Value Description
NSAnimationBlocking 0 One of the constants to indicate the blocking mode of an NSAnimation object when it is running. Requests the animation to run in the main thread in a custom run-loop mode that blocks user input.

This is the default.
NSAnimationEaseIn 1 One of the constants to describe the curve of an animation—that is, the relative speed of an animation from start to finish. Describes an animation that slows down as it reaches the end.
NSAnimationEaseInOut 0 One of the constants to describe the curve of an animation—that is, the relative speed of an animation from start to finish. Describes an S-curve in which the animation slowly speeds up and then slows down near the end of the animation. This constant is the default.
NSAnimationEaseOut 2 One of the constants to describe the curve of an animation—that is, the relative speed of an animation from start to finish. Describes an animation that slowly speeds up from the start.
NSAnimationLinear 3 One of the constants to describe the curve of an animation—that is, the relative speed of an animation from start to finish. Describes an animation in which there is no change in frame rate.
NSAnimationNonblocking 1 One of the constants to indicate the blocking mode of an NSAnimation object when it is running. Requests the animation to run in a standard or specified run-loop mode that allows user input.
NSAnimationNonblockingThreaded 2 One of the constants to indicate the blocking mode of an NSAnimation object when it is running. Requests the animation to run in a separate thread that is spawned by the NSAnimation object.

The secondary thread has its own run loop.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


NSAnimationContextMBS   -   NSAppearanceMBS


The biggest plugin in space...