![]() |
API 0.9.5
|
#import <CPPopover.h>
Instance Methods | |
(BOOL) | - animates |
(int) | - appearance |
(BOOL) | - attachedWindowShouldClose: |
(int) | - behavior |
(void) | - close |
(CPRect) | - contentSize |
(CPViewController) | - contentViewController |
(id) | - delegate |
(void) | - encodeWithCoder: |
(CPPopover) | - init |
(id) | - initWithCoder: |
(IBAction) | - performClose: |
(CPRect) | - positioningRect |
(void) | - setAnimates: |
(void) | - setAppearance: |
(void) | - setBehaviour: |
(void) | - setContentSize: |
(void) | - setContentViewController: |
(void) | - setDelegate: |
(void) | - setPositioningRect: |
(BOOL) | - shown |
(void) | - showRelativeToRect:ofView:preferredEdge: |
This class represent a widget that displays a attached view relative to another one.
Delegate can implement: – popoverShouldClose:(CPPopover)aPopOver – popoverWillShow:(CPPopover)aPopOver – popoverDidShow:(CPPopover)aPopOver – popoverWillClose:(CPPopover)aPopOver – popoverDidClose:(CPPopover)aPopOver
Definition at line 2 of file CPPopover.h.
- (BOOL) animates |
Synthesized accessor method.
Definition at line 348 of file CPPopover.j.
- (int) appearance |
Synthesized accessor method.
Definition at line 372 of file CPPopover.j.
- (BOOL) attachedWindowShouldClose: | (_CPAttachedWindow) | anAttachedWindow |
Definition at line 269 of file CPPopover.j.
- (int) behavior |
Synthesized accessor method.
Definition at line 388 of file CPPopover.j.
- (void) close |
Closes the popover
Definition at line 235 of file CPPopover.j.
- (CPRect) contentSize |
Returns the size of the popover's view
Definition at line 120 of file CPPopover.j.
- (CPViewController) contentViewController |
Synthesized accessor method.
Definition at line 324 of file CPPopover.j.
- (id) delegate |
Synthesized accessor method.
Definition at line 340 of file CPPopover.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder |
Archives the responder to a coder.
aCoder | the coder to which the responder will be archived |
Reimplemented from CPResponder.
Definition at line 305 of file CPPopover.j.
- (CPPopover) init |
Initialize the CPPopover witn default values
Definition at line 75 of file CPPopover.j.
- (id) initWithCoder: | (CPCoder) | aCoder |
Initializes the responder with data from a coder.
aCoder | the coder from which data will be read |
Reimplemented from CPResponder.
Definition at line 289 of file CPPopover.j.
- (IBAction) performClose: | (id) | aSender |
Close the popover
aSender | the sender of the action |
Definition at line 259 of file CPPopover.j.
- (CPRect) positioningRect |
Returns the current rect of the popover
Definition at line 98 of file CPPopover.j.
- (void) setAnimates: | (BOOL) | aValue |
Synthesized accessor method.
Definition at line 356 of file CPPopover.j.
- (void) setAppearance: | (int) | aValue |
Synthesized accessor method.
Definition at line 380 of file CPPopover.j.
- (void) setBehaviour: | (int) | aBehaviour |
Set the behaviour of the CPPopover. It can be
aBehaviour | the desired behaviour |
Definition at line 156 of file CPPopover.j.
- (void) setContentSize: | (CPSize) | aSize |
Sets the size of of the popover's view
aSize | the desired size |
Definition at line 132 of file CPPopover.j.
- (void) setContentViewController: | (CPViewController) | aValue |
Synthesized accessor method.
Definition at line 332 of file CPPopover.j.
- (void) setDelegate: | (id) | aDelegate |
Definition at line 166 of file CPPopover.j.
- (void) setPositioningRect: | (CPRect) | aRect |
Sets the frame of the popover
aRect | the desired frame |
Definition at line 108 of file CPPopover.j.
- (BOOL) shown |
Indicates if CPPopover is visible
Synthesized accessor method.
Definition at line 142 of file CPPopover.j.
- (void) showRelativeToRect: | (CPRect) | positioningRect | |
ofView: | (CPView) | positioningView | |
preferredEdge: | (CPRectEdge) | preferredEdge | |
Show the popover
positioningRect | if set, the popover will be positionned to a random rect relative to the window |
positioningView | if set, the popover will be positioned relative to this view |
preferredEdge,: | CPRectEdge representing the preferred positioning. |
Definition at line 200 of file CPPopover.j.