What's the difference between a CoreAnimation Layer Backed View and a Layer Hosting View?

A layer backed view contains Cocoa or Cocoa Touch UI controls and can be animated using the animator proxy. Layer backed views allow you to animate your UI and help to reduce the overhead of drawing by caching the views contents on a core animation layer. Create a Layer backed view by setting the wants layer property: NSView *layerBacked = NSView new; layerBacked setWantsLayer:YES A layer hosting view provides a layer for direct manipulation hosted by an NSView or UIView.

Layer hosting views can be used for embedding core animation drawing and animation anywhere you can put an NSView: NSView *layerHosting = NSView new; layerHosting setLayer:CALayer new autorelease; layerHosting setWantsLayer:YES.

A layer backed view contains Cocoa or Cocoa Touch UI controls and can be animated using the animator proxy. Layer backed views allow you to animate your UI and help to reduce the overhead of drawing by caching the views contents on a core animation layer. Create a Layer backed view by setting the wants layer property: NSView *layerBacked = NSView new; layerBacked setWantsLayer:YES; A layer hosting view provides a layer for direct manipulation hosted by an NSView or UIView.

Layer hosting views can be used for embedding core animation drawing and animation anywhere you can put an NSView: NSView *layerHosting = NSView new; layerHosting setLayer:CALayer new autorelease; layerHosting setWantsLayer:YES.

3 Also note that in Cocoa Touch all UIView's are layer backed by default – Jason Harwig May 14 '09 at 20:40 1 You missed "layerHosting setWantsLayer:YES;". Apple clearly says, that you must call this also for layer hosting views, however, only after setting a layer. See NSView documentation.

I fixed your answer accordingly. – Mecki Jan 20 at 15:28 I found this and this discussionsvery helful. – JJD Jul 18 at 13:52.

A layer backed view contains Cocoa or Cocoa Touch UI controls and can be animated using the animator proxy. Layer backed views allow you to animate your UI and help to reduce the overhead of drawing by caching the views contents on a core animation layer. A layer hosting view provides a layer for direct manipulation hosted by an NSView or UIView.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions