MenuItemToggle Class Reference

#import <MenuItem.h>

Inherits MenuItem.

Collaboration diagram for MenuItemToggle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithTarget:selector:items:vaList:
(MenuItem *) - selectedItem

Static Public Member Functions

(id) + itemWithTarget:selector:items:

Properties

NSUInteger selectedIndex
NSMutableArray * subItems


Detailed Description

A MenuItemToggle

Member Function Documentation

- (id) initWithTarget: (id)  t
selector: (SEL)  s
items: (MenuItem *)  item
vaList: (va_list)  args 

initializes a menu item from a list of items with a target selector

+ (id) itemWithTarget: (id)  t
selector: (SEL)  s
items: (MenuItem *)  item
,   NS_REQUIRES_NIL_TERMINATION 

creates a menu item from a list of items with a target/selector

- (MenuItem*) selectedItem  

return the selected item


Property Documentation

- (NSUInteger) selectedIndex [read, write, assign]

returns the selected item

- (NSMutableArray*) subItems [read, write, retain]

NSMutableArray that contains the subitems. You can add/remove items in runtime, and you can replace the array with a new one.

Since:
v0.7.2


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

Generated on Tue Jun 9 10:39:39 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8