MonobjcMonobjc Documented Class Library
ActionForLayerForKeyMessage Method (layer, key)
NamespacesMonobjc.QuartzCoreCALayer..::..CALayerDelegateEventDispatcherActionForLayerForKeyMessage(CALayer, NSString)

Allows the delegate to customize the action for a layer.

Original signature is '- (id < CAAction >)actionForLayer:(CALayer *)layer forKey:(NSString *)key'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public ICAAction ActionForLayerForKeyMessage(
	CALayer layer,
	NSString key
)
Public Function ActionForLayerForKeyMessage ( _
	layer As CALayer, _
	key As NSString _
) As ICAAction
public:
ICAAction^ ActionForLayerForKeyMessage(
	CALayer^ layer, 
	NSString^ key
)
Parameters
layer (CALayer)
The layer that is the target of the action.
key (NSString)
The identifier of the action.
Return Value
Returns an object implementing the CAAction protocol. May return nil if the delegate doesn't specify a behavior for 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)