cocos3d  2.0.0
Instance Methods | Properties | List of all members
CCNode(CC3ControllableLayer) Category Reference

#import <CC3ControllableLayer.h>

Instance Methods

(void) - viewDidRotateFrom:to:
 

Properties

CC3ViewControllercontroller
 

Detailed Description

Extension to CCNode to support structural node hierarchies containing controlled nodes.

Method Documentation

- (void) viewDidRotateFrom: (UIInterfaceOrientation)  oldOrientation
to: (UIInterfaceOrientation)  newOrientation 

Invoked automatically by a CC3UIViewController when the orientation of the view (portrait, landscape, etc) has changed using UIKit autorotation.

This default implementation simply invokes the same method on each child CCNode. Subclasses that are interested in device changes will override.

In addition to invoking this method, the controller will also set the contentSize of the CCNode in its controlledNode property to match the new view size. CCNode sublcasses can override the setContentSize: method to adapt to the new size. In particular, the CC3ControlledNode subclass automatically invokes the didUpdateContentSizeFrom: callback method when its contentSize property is changed.

Property Documentation

- (CC3ViewController*) controller
readwritenonatomicunsafe_unretained

The controller that is controlling this node.

This property is available to support delegation from this node. This property is set automatically when this node is attached to the controller, and should not be set by the application directly.

In this default implementation, setting the value of this property simply sets the value of the same property in each child CCNode to the same value. Reading the value of this property returns the value of the same property from the parent of this CCNode, or returns nil if this node has no parent.


The documentation for this category was generated from the following file: