![]() |
API
0.9.7
|
#import <CPToolbar.h>
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: |
(CPToolbarSizeMode) | - sizeMode |
(void) | - toolbarItemDidChange: |
(void) | - validateVisibleItems |
(CPArray) | - visibleItems |
Class Methods | |
(void) | + initialize |
A CPToolbar is displayed at the top of a window with multiple buttons (tools) that offer the user quick access to features.
-(CPArray)toolbarDefaultItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.
toolbar | the toolbar to obtain identifiers for |
-(CPArray)toolbarAllowedItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.
toolbar | the toolbar to obtain identifiers for |
- (CPToolbarItem)toolbar:(CPToolbar)toolbar itemForItemIdentifier:(CPString)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag; Called to obtain a toolbar item. Required.
toolbar | the toolbar the item belongs to |
itemIdentifier | the identifier of the toolbar item |
flag | YES means the item will be placed in the toolbar. NO means the item will be displayed for some other purpose (non-functional) |
nil
if no such item belongs in the toolbar Definition at line 2 of file CPToolbar.h.
|
implementation |
Returns the toolbar's delegate
Definition at line 176 of file CPToolbar.j.
|
implementation |
Synthesized accessor method.
Provided by category CPToolbar(CPSynthesizedAccessors).
Definition at line 1246 of file CPToolbar.j.
|
implementation |
Provided by category CPToolbar(CPCoding).
Definition at line 537 of file CPToolbar.j.
|
implementation |
Returns the toolbar's identifier
Definition at line 168 of file CPToolbar.j.
|
implementation |
Definition at line 136 of file CPToolbar.j.
|
implementation |
Definition at line 113 of file CPToolbar.j.
|
implementation |
Provided by category CPToolbar(CPCoding).
Definition at line 486 of file CPToolbar.j.
|
implementation |
Initializes the toolbar with the specified identifier.
anIdentifier | the identifier for the toolbar |
Definition at line 146 of file CPToolbar.j.
|
implementation |
Returns YES
if the toolbar is currently visible
Definition at line 184 of file CPToolbar.j.
|
implementation |
Returns all the items in this toolbar.
Definition at line 342 of file CPToolbar.j.
|
implementation |
Returns the toolbar items sorted by their visibilityPriority(ies)
.
Definition at line 358 of file CPToolbar.j.
|
implementation |
Sets the delegate for the toolbar.
aDelegate | the new toolbar delegate |
Definition at line 233 of file CPToolbar.j.
|
implementation |
Synthesized accessor method.
Provided by category CPToolbar(CPSynthesizedAccessors).
Definition at line 243 of file CPToolbar.j.
|
implementation |
Synthesized accessor method.
Provided by category CPToolbar(CPSynthesizedAccessors).
Definition at line 203 of file CPToolbar.j.
|
implementation |
Sets whether the toolbar should be visible.
aFlag | YES makes the toolbar visible |
Definition at line 193 of file CPToolbar.j.
|
implementation |
Synthesized accessor method.
Provided by category CPToolbar(CPSynthesizedAccessors).
Definition at line 1262 of file CPToolbar.j.
|
implementation |
Notifies the toolbar that an item has been changed. This will cause the toolbar to reload its items.
anItem | the item that has been changed |
Definition at line 443 of file CPToolbar.j.
|
implementation |
Validates the visible toolbar items by sending a validate message to each visible toolbar item.
Definition at line 367 of file CPToolbar.j.
|
implementation |
Returns all the visible items in this toolbar
Definition at line 350 of file CPToolbar.j.