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.

C# | Visual Basic | Visual C++ |
public NSAnimation( double duration, NSAnimationCurve animationCurve )
Public Sub New ( _ duration As Double, _ animationCurve As NSAnimationCurve _ )
public: NSAnimation( 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.

An initialized NSAnimation instance. Returns nil if the object could not be initialized.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)