Public Member Functions | Properties

CCNode(CC3UIViewController) Class Reference

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

#import <CC3UIViewController.h>

List of all members.

Public Member Functions

(void) - viewDidRotateFrom:to:

Properties

UIViewController * controller

Detailed Description

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


Member Function 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.

The CCNode may take action such as transposing its contentSize, or reorganizing its child nodes, to better fit the new screen shape.

This default implementation simply invokes the same method on each child CCNode. Subclasses that support the ability to be controlled by a CC3UIViewController will override.


Property Documentation

- (UIViewController*) controller [read, write, assign]

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 class was generated from the following file: