Protocol: CAAction

Overview

The CAAction protocol provides an interface that allows an object to respond to an action triggered by an CALayer. When queried with an action identifier (a key path, an external action name, or a predefined action identifier) the layer returns the appropriate action object–which must implement the CAAction protocol–and sends it a runActionForKey:object:arguments: message. Called to trigger the action specified by the identifier. (required)

Instance Method Summary (collapse)

Instance Method Details

- (Object) runActionForKey(key, object:anObject, arguments:dict)

Called to trigger the action specified by the identifier. (required)

Parameters:

  • key (String)

    The identifier of the action. The identifier may be a key or key path relative to anObject, an arbitrary external action, or one of the action identifiers defined in CALayer Class Reference.

  • anObject (Object)

    The layer on which the action should occur.

  • dict (Hash)

    A dictionary containing parameters associated with this event. May be nil.

Returns: