API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPToolbar Class Reference

#import <CPToolbar.h>

+ Inheritance diagram for CPToolbar:

Instance Methods

(id) - delegate
 
(CPToolbarDisplayMode) - displayMode
 
(void) - encodeWithCoder:
 
(CPString- identifier
 
(id) - init
 
(id) - initWithCoder:
 
(id) - initWithIdentifier:
 
(BOOL) - isVisible
 
(CPArray- items
 
(CPArray- itemsSortedByVisibilityPriority
 
(void) - setDelegate:
 
(void) - setDisplayMode:
 
(void) - setSizeMode:
 
(void) - setVisible:
 
(int) - sizeMode
 
(void) - toolbarItemDidChange:
 
(void) - validateVisibleItems
 
(CPArray- visibleItems
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(void) + initialize
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

A CPToolbar is displayed at the top of a window with multiple buttons (tools) that offer the user quick access to features.

Delegate Methods

-(CPArray)toolbarDefaultItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.

Parameters
toolbarthe toolbar to obtain identifiers for
Returns
an array of default item identifiers in the order on the toolbar

-(CPArray)toolbarAllowedItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.

Parameters
toolbarthe toolbar to obtain identifiers for
Returns
an array of default item identifiers in the order on the toolbar

- (CPToolbarItem)toolbar:(CPToolbar)toolbar itemForItemIdentifier:(CPString)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag; Called to obtain a toolbar item. Required.

Parameters
toolbarthe toolbar the item belongs to
itemIdentifierthe identifier of the toolbar item
flagYES means the item will be placed in the toolbar. NO means the item will be displayed for some other purpose (non-functional)
Returns
the toolbar item or nil if no such item belongs in the toolbar

Definition at line 2 of file CPToolbar.h.

Method Documentation

- (id) delegate
implementation

Returns the toolbar's delegate

Definition at line 197 of file CPToolbar.j.

- (CPToolbarDisplayMode) displayMode
implementation

Synthesized accessor method.

Provided by category CPToolbar(CPSynthesizedAccessors).

Definition at line 1267 of file CPToolbar.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPToolbar(CPCoding).

Definition at line 568 of file CPToolbar.j.

- (CPString) identifier
implementation

Returns the toolbar's identifier

Definition at line 189 of file CPToolbar.j.

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 148 of file CPToolbar.j.

+ (void) initialize
implementation

Reimplemented from CPObject.

Definition at line 112 of file CPToolbar.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPToolbar(CPCoding).

Definition at line 517 of file CPToolbar.j.

- (id) initWithIdentifier: (CPString anIdentifier
implementation

Initializes the toolbar with the specified identifier.

Parameters
anIdentifierthe identifier for the toolbar
Returns
the initialized toolbar

Definition at line 158 of file CPToolbar.j.

- (BOOL) isVisible
implementation

Returns YES if the toolbar is currently visible

Definition at line 205 of file CPToolbar.j.

- (CPArray) items
implementation

Returns all the items in this toolbar.

Definition at line 373 of file CPToolbar.j.

- (CPArray) itemsSortedByVisibilityPriority
implementation

Returns the toolbar items sorted by their visibilityPriority(ies).

Definition at line 389 of file CPToolbar.j.

- (void) setDelegate: (id)  aDelegate
implementation

Sets the delegate for the toolbar.

Parameters
aDelegatethe new toolbar delegate

Definition at line 254 of file CPToolbar.j.

- (void) setDisplayMode: (CPToolbarDisplayMode)  aDisplayMode
implementation

Sets the toolbar's display mode. NOT YET IMPLEMENTED.

Provided by category CPToolbar(CPSynthesizedAccessors).

Definition at line 181 of file CPToolbar.j.

- (void) setSizeMode: (CPToolbarSizeMode)  aSize
implementation

Provided by category CPToolbar(CPSynthesizedAccessors).

Definition at line 224 of file CPToolbar.j.

- (void) setVisible: (BOOL)  aFlag
implementation

Sets whether the toolbar should be visible.

Parameters
aFlagYES makes the toolbar visible

Definition at line 214 of file CPToolbar.j.

- (int) sizeMode
implementation

Synthesized accessor method.

Provided by category CPToolbar(CPSynthesizedAccessors).

Definition at line 1283 of file CPToolbar.j.

- (void) toolbarItemDidChange: (CPToolbarItem anItem
implementation

Notifies the toolbar that an item has been changed. This will cause the toolbar to reload its items.

Parameters
anItemthe item that has been changed

Definition at line 474 of file CPToolbar.j.

- (void) validateVisibleItems
implementation

Validates the visible toolbar items by sending a validate message to each visible toolbar item.

Definition at line 398 of file CPToolbar.j.

- (CPArray) visibleItems
implementation

Returns all the visible items in this toolbar

Definition at line 381 of file CPToolbar.j.


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