MonobjcMonobjc Documented Class Library
AddAnimationForKey Method (anim, key)
NamespacesMonobjc.QuartzCoreCALayerAddAnimationForKey(CAAnimation, NSString)

Add an animation object to the receiver’s render tree for the specified key.

Original signature is '- (void)addAnimation:(CAAnimation *)anim forKey:(NSString *)key'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void AddAnimationForKey(
	CAAnimation anim,
	NSString key
)
Public Overridable Sub AddAnimationForKey ( _
	anim As CAAnimation, _
	key As NSString _
)
public:
virtual void AddAnimationForKey(
	CAAnimation^ anim, 
	NSString^ key
)
Parameters
anim (CAAnimation)
The animation to be added to the render tree. Note that the object is copied by the render tree, not referenced. Any subsequent modifications to the object will not be propagated into the render tree.
key (NSString)
A string that specifies an identifier for the animation. Only one animation per unique key is added to the layer. The special key kCATransition is automatically used for transition animations. The nil pointer is also a valid key.
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)