MonobjcMonobjc Documented Class Library
NSAnimation Constructor (duration, animationCurve)
NamespacesMonobjc.AppKitNSAnimationNSAnimation(Double, NSAnimationCurve)

Returns an NSAnimation object initialized with the specified duration and animation-curve values.

Original signature is '- (id)initWithDuration:(NSTimeInterval)duration animationCurve:(NSAnimationCurve)animationCurve'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSAnimation(
	double duration,
	NSAnimationCurve animationCurve
Public Sub New ( _
	duration As Double, _
	animationCurve As NSAnimationCurve _
	double duration, 
	NSAnimationCurve animationCurve
duration (Double)
The number of seconds over which the animation occurs. Specifying a negative number raises an exception.
animationCurve (NSAnimationCurve)
An NSAnimationCurve constant that describes the relative speed of the animation over its course; if it is zero, the default curve (NSAnimationEaseInOut) is used.
Return Value
An initialized NSAnimation instance. Returns nil if the object could not be initialized.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)