I do not know what this "correct" answer is. But I think the CocoaSlides example works as part of what the docs say you shouldn't do. In this example, look where the insertNodeForAssetAtIndex: method is insertNodeForAssetAtIndex: , and you will see that this only happens when the view is populated before it is ever assigned a layer or has setWantsLayer: called on it.
The documents do not say that the presentation placed at the level cannot contain any subheadings, they simply say that you cannot add and view them. At the moment when these subitems were added, the main view has not yet become a layout view at the layer level. After it was converted to a presentation of the placement level using the manually created layer assigned to it, no more additional objects were added.
Thus, there really is no contradiction between the documents and this particular example. It would be interesting to study this further, perhaps by including the QC background layer from the very beginning, for example, by inserting [self setUsesQuartzCompositionBackground:YES]; right inside initWithFrame:
SPOLIER WARNING: Everything seems to work fine. Creating a display is a bit slower (it’s not surprising that all this happens in QC animation), but in addition it swims smoothly.
Jack nutting
source share