Cocoa Layer-Backed Views: When can I NOT enable layer support on window content view?

This line is displayed in Apple Core Animation docs (link: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/SettingUpLayerObjects/SettingUpLayerObjects.html#//apple_ref/doc/uid/TP400045 CH13-SW5 )

It is recommended that you enable layer support in the content view 
of your window whenever possible.

My question is: When can I do this safely?

Explanation:

I have a few buttons in my user interface that I want to animate (rotate) using Core Animation. To do this, they must be protected by layers. Right now, I only have buttons with layer support, and the rest of my views are not. This is working fine. However, Apple does not clarify the sentence above, so I worry that animations may break in future releases because parent views are not supported based on layers.

There are two reasons why I do not want to align the entire hierarchy of the view:

  • It increases my memory by about 230%.
  • This causes a lot of minor glitches (especially since I am doing a lot of custom drawings).

, , ? !

+5
1

, . Apple, , , , .

:

nib View Effects . . , .

, , , , ? , , , , , .

iOS , setWantsLayer: Mac OS.

+2

All Articles