API 0.9.5
CPPopover Class Reference

#import <CPPopover.h>

Inheritance diagram for CPPopover:

List of all members.

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:

Detailed Description

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.


Method Documentation

- (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

Returns:
CPSize represeting 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.

Parameters:
aCoderthe 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

Returns:
anInitialized CPPopover

Definition at line 75 of file CPPopover.j.

- (id) initWithCoder: (CPCoder aCoder

Initializes the responder with data from a coder.

Parameters:
aCoderthe coder from which data will be read
Returns:
the initialized responder

Reimplemented from CPResponder.

Definition at line 289 of file CPPopover.j.

- (IBAction) performClose: (id)  aSender

Close the popover

Parameters:
aSenderthe sender of the action

Definition at line 259 of file CPPopover.j.

- (CPRect) positioningRect

Returns the current rect of the popover

Returns:
CPRect represeting the frame 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

  • CPPopoverBehaviorTransient: the popover will be close if another control outside the popover become the responder
  • CPPopoverBehaviorApplicationDefined: (DEFAULT) the application is responsible for closing the popover
Parameters:
aBehaviourthe desired behaviour

Definition at line 156 of file CPPopover.j.

- (void) setContentSize: (CPSize)  aSize

Sets the size of of the popover's view

Parameters:
aSizethe 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

Parameters:
aRectthe desired frame

Definition at line 108 of file CPPopover.j.

- (BOOL) shown

Indicates if CPPopover is visible

Returns:
YES if 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

Parameters:
positioningRectif set, the popover will be positionned to a random rect relative to the window
positioningViewif set, the popover will be positioned relative to this view
preferredEdge,:CPRectEdge representing the preferred positioning.

Definition at line 200 of file CPPopover.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines