Requests a custom curve value for the current progress value.
- macOS 10.4+
NSAnimationobject that is running.
floatvalue (typed as
NSAnimation) that indicates a progress mark of
animation. This value is always between 0.0 and 1.0.
float value representing a custom curve.
The delegate can compute and return a custom curve value for the given progress value. If the delegate does not implement this method,
NSAnimation computes the current curve value.
The animation:valueForProgress: message is sent to the delegate when an
NSAnimation object receives a
current message. The value the delegate returns is used as the value of
current; if there is no delegate, or it doesn't implement animation:valueForProgress:,
NSAnimation computes and returns the current value.
NSAnimation does not invoke
currentitself, but subclasses might.
See the description of
current for more information.