API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPPopover Class Reference

#import <CPPopover.h>

+ Inheritance diagram for CPPopover:

Instance Methods

(BOOL) - animates
 
(int) - appearance
 
(int) - behavior
 
(void) - close
 
(CGSize) - contentSize
 
(CPViewController- contentViewController
 
(id) - delegate
 
(void) - encodeWithCoder:
 
(CPPopover- init
 
(id) - initWithCoder:
 
(BOOL) - isShown
 
(IBAction) - performClose:
 
(void) - popoverWindowDidClose:
 
(void) - popoverWindowDidShow:
 
(BOOL) - popoverWindowShouldClose:
 
(CGRect) - positioningRect
 
(void) - setAnimates:
 
(void) - setAppearance:
 
(void) - setBehavior:
 
(void) - setBehaviour:
 
(void) - setContentSize:
 
(void) - setContentViewController:
 
(void) - setDelegate:
 
(void) - setPositioningRect:
 
(void) - showRelativeToRect:ofView:preferredEdge:
 
(unsigned) - styleMaskForBehavior
 

Detailed Description

This class represent a widget that displays a popover 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
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 405 of file CPPopover.j.

- (int) appearance
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 413 of file CPPopover.j.

- (int) behavior
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 429 of file CPPopover.j.

- (void) close
implementation

Closes the popover

Definition at line 254 of file CPPopover.j.

- (CGSize) contentSize
implementation

Returns the size of the popover's view

Returns
CGSize representing the size of the popover's view

Definition at line 120 of file CPPopover.j.

- (CPViewController) contentViewController
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 381 of file CPPopover.j.

- (id) delegate
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 397 of file CPPopover.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPPopover(CPCoding).

Definition at line 363 of file CPPopover.j.

- (CPPopover) init
implementation

Initialize the CPPopover witn default values

Returns
an initialized CPPopover

Definition at line 75 of file CPPopover.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPPopover(CPCoding).

Definition at line 348 of file CPPopover.j.

- (BOOL) isShown
implementation

Indicates if CPPopover is visible

Returns
YES if visible

Definition at line 143 of file CPPopover.j.

- (IBAction) performClose: (id)  sender
implementation

Close the popover

Parameters
senderthe sender of the action

Definition at line 285 of file CPPopover.j.

- (void) popoverWindowDidClose: (_CPPopoverWindow)  aPopoverWindow
implementation

Definition at line 313 of file CPPopover.j.

- (void) popoverWindowDidShow: (_CPPopoverWindow)  aPopoverWindow
implementation

Definition at line 320 of file CPPopover.j.

- (BOOL) popoverWindowShouldClose: (_CPPopoverWindow)  aPopoverWindow
implementation

Definition at line 302 of file CPPopover.j.

- (CGRect) positioningRect
implementation

Returns the current rect of the popover

Returns
CGRect representing the frame of the popover

Definition at line 96 of file CPPopover.j.

- (void) setAnimates: (BOOL)  shouldAnimate
implementation

Set if the popover should animate for open/close actions.

Parameters
shouldAnimateif YES, the popover will be animated.

Definition at line 153 of file CPPopover.j.

- (void) setAppearance: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 421 of file CPPopover.j.

- (void) setBehavior: (int)  aBehavior
implementation

Set the behavior of the CPPopover. It can be:

  • CPPopoverBehaviorTransient: the popover will close if another control outside the popover becomes the responder
  • CPPopoverBehaviorApplicationDefined: (DEFAULT) the application is responsible for closing the popover
Parameters
aBehaviorthe desired behavior

Definition at line 170 of file CPPopover.j.

- (void) setBehaviour: (int)  aBehavior
implementation

Provided by category CPPopover(Deprecated).

Definition at line 330 of file CPPopover.j.

- (void) setContentSize: (CGSize)  aSize
implementation

Sets the size of of the popover's view

Parameters
aSizethe desired size

Definition at line 133 of file CPPopover.j.

- (void) setContentViewController: (CPViewController aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 389 of file CPPopover.j.

- (void) setDelegate: (id)  aDelegate
implementation

Definition at line 179 of file CPPopover.j.

- (void) setPositioningRect: (CGRect)  aRect
implementation

Sets the frame of the popover

Parameters
aRectthe desired frame

Definition at line 107 of file CPPopover.j.

- (void) showRelativeToRect: (CGRect)  positioningRect
ofView: (CPView positioningView
preferredEdge: (CPRectEdge)  preferredEdge 
implementation

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 213 of file CPPopover.j.

- (unsigned) styleMaskForBehavior
implementation

Definition at line 246 of file CPPopover.j.


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