Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAnimationMBS class.

NSAnimationMBS.animationBlockingMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The blocking mode of the receiver.

A constant representing the blocking mode the animation is next scheduled to run under. See "NSAnimationBlockingMode" for valid values.

If the constant is NSAnimationNonblocking, the animation runs in the main thread in one of the standard run-loop modes or in a mode returned from runLoopModesForAnimating. If animationBlockingMode is NSAnimationNonblockingThreaded, a new thread is spawned to run the animation.

The default mode is NSAnimationBlocking, which means that the animation runs on the main thread in a custom run-loop mode that blocks user events. The new blocking mode takes effect the next time the receiver is started and has no effect on an animation underway.
(Read and Write computed property)

Some examples using this property:

NSAnimationMBS.animationCurve as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The animation curve the receiver is running under.

The animation curve describes the relative frame rate over the course of the animation. See NSAnimation* constants.
(Read and Write computed property)

NSAnimationMBS.clearStartAnimation

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Clears linkage to another animation that causes the receiver to start.

NSAnimationMBS.clearStopAnimation

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Clears linkage to another animation that causes the receiver to stop.

NSAnimationMBS.Constructor(duration as Double, animationCurve as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes the object with the specified duration and animation-curve values.

duration: The number of seconds over which the animation occurs. Specifying a negative number raises an exception.
animationCurve: An NSAnimationCurve constant that describes the relative speed of the animation over its course; if it is zero, the default curve (NSAnimationEaseInOut) is used.

You can always later change the duration of an NSAnimation object by sending it a setDuration: message, even while the animation is running. See "Constants" for descriptions of the NSAnimationCurve constants.

NSAnimationMBS.currentProgress as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The current progress of the receiver.

The current progress is a value between 0.0 and 1.0 that represents the percentage of the animation currently completed.
(Read and Write computed property)

NSAnimationMBS.currentValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the current value of the effect based on the current progress.

NSAnimationMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The destructor.

NSAnimationMBS.duration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The duration of the animation, in seconds.

(Read and Write computed property)

NSAnimationMBS.frameRate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The frame rate of the animation.

The frame rate is the number of updates per second. It is not guaranteed to be accurate because of differences between systems on the time needed to process a frame.
(Read and Write computed property)

NSAnimationMBS.isAnimating as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether the receiver is currently animating.

True if the receiver is animating, false otherwise.

NSAnimationMBS.startAnimation

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Starts the animation represented by the receiver.

The receiver retains itself and is then autoreleased at the end of the animation or when it receives stopAnimation. If the blocking mode is NSAnimationBlocking, the method only returns after the animation has completed or the delegate sends it stopAnimation. If the receiver has a progress of 1.0, it starts again at 0.0.

NSAnimationMBS.stopAnimation

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Stops the animation represented by the receiver.

The current progress of the receiver is not reset. When this method is sent to instances of NSViewAnimation (a subclass of NSAnimation) the receiver moves to the end frame location.

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


The biggest plugin in space...