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 Basic | Visual C++ |
public virtual Id InitWithDurationAnimationCurve( double duration, NSAnimationCurve animationCurve )
Public Overridable Function InitWithDurationAnimationCurve ( _ duration As Double, _ animationCurve As NSAnimationCurve _ ) As Id
public: virtual Id^ InitWithDurationAnimationCurve( double duration, NSAnimationCurve animationCurve )
Parameters
- 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)