(Added info on how touches are delivered) |
(Reworded to avoid confusion about which layer was being referred to.) |
||
Line 1: | Line 1: | ||
[[CALayerHost]] is a [[CALayer]] subclass which renders another layer's render context. It allows touches to be | [[CALayerHost]] is a [[CALayer]] subclass which renders another layer's render context. It also allows touches to be sent directly to the process which contains the original [[CALayer]]. Touches are delivered to [[backboardd]] by [[IOKit]], which then calls the current [[CAWindowDisplayServer]]'s ''-contextIdAtPosition:'' method to retrieve the context ID that the touches should be sent to. | ||
{{function signature | {{function signature |
Revision as of 00:47, 5 November 2013
CALayerHost is a CALayer subclass which renders another layer's render context. It also allows touches to be sent directly to the process which contains the original CALayer. Touches are delivered to backboardd by IOKit, which then calls the current CAWindowDisplayServer's -contextIdAtPosition: method to retrieve the context ID that the touches should be sent to.
Signature | @property(assign) unsigned contextId; |
---|---|
Available in | 2.0 – |
Setting this property makes the CALayerHost display the context of the layer that has that contextId.
References
|