API  1.0.0
CPPopover Class Reference

#import <CPPopover.h>

+ Inheritance diagram for CPPopover:

Instance Methods

(outlet id< CPPopoverDelegate > _delegate) - accessors
 
(BOOL) - animates
 
(int) - appearance
 
(int) - behavior
 
(void) - close
 
(CGSize) - contentSize
 
(CPViewController- contentViewController
 
(void) - encodeWithCoder:
 
(CPPopover- init
 
(id) - initWithCoder:
 
(BOOL) - isShown
 
(IBAction) - performClose:
 
(CGRect) - positioningRect
 
(void) - setAnimates:
 
(void) - setAppearance:
 
(void) - setBehavior:
 
(void) - setBehaviour:
 
(void) - setContentSize:
 
(void) - setContentViewController:
 
(void) - setDelegate:
 
(void) - setPositioningRect:
 
(void) - showRelativeToRect:ofView:preferredEdge:
 
- Instance Methods inherited from CPResponder
(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(void) - cursorUpdate:
 
(void) - doCommandBySelector:
 
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyDown:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseDown:
 
(void) - mouseDragged:
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(void) - mouseMoved:
 
(void) - mouseUp:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseDown:
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
(CPUndoManager- undoManager
 
- 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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 

Additional Inherited Members

- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

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

◆ accessors()

- (outlet id< CPPopoverDelegate > _delegate) accessors (getter)  = delegate
implementation

◆ animates()

- (BOOL) animates
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 433 of file CPPopover.j.

◆ appearance()

- (int) appearance
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 441 of file CPPopover.j.

◆ behavior()

- (int) behavior
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 457 of file CPPopover.j.

◆ close()

- (void) close
implementation

Closes the popover

Definition at line 268 of file CPPopover.j.

◆ contentSize()

- (CGSize) contentSize
implementation

Returns the size of the popover's view

Returns
CGSize representing the size of the popover's view

Definition at line 130 of file CPPopover.j.

◆ contentViewController()

- (CPViewController) contentViewController
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 417 of file CPPopover.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the responder to a coder.

Parameters
aCoderthe coder to which the responder will be archived

Reimplemented from CPResponder.

Provided by category CPPopover(CPCoding).

Definition at line 399 of file CPPopover.j.

◆ init()

- (CPPopover) init
implementation

Initialize the CPPopover witn default values

Returns
an initialized CPPopover

Reimplemented from CPObject.

Definition at line 85 of file CPPopover.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the responder with data from a coder.

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

Reimplemented from CPResponder.

Provided by category CPPopover(CPCoding).

Definition at line 384 of file CPPopover.j.

◆ isShown()

- (BOOL) isShown
implementation

Indicates if CPPopover is visible

Returns
YES if visible

Definition at line 153 of file CPPopover.j.

◆ performClose:()

- (IBAction) performClose: (id)  sender
implementation

Close the popover

Parameters
senderthe sender of the action

Definition at line 299 of file CPPopover.j.

◆ positioningRect()

- (CGRect) positioningRect
implementation

Returns the current rect of the popover

Returns
CGRect representing the frame of the popover

Definition at line 106 of file CPPopover.j.

◆ setAnimates:()

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

◆ setAppearance:()

- (void) setAppearance: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 449 of file CPPopover.j.

◆ setBehavior:()

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

◆ setBehaviour:()

- (void) setBehaviour: (int)  aBehavior
implementation

Provided by category CPPopover(Deprecated).

Definition at line 366 of file CPPopover.j.

◆ setContentSize:()

- (void) setContentSize: (CGSize)  aSize
implementation

Sets the size of of the popover's view

Parameters
aSizethe desired size

Definition at line 140 of file CPPopover.j.

◆ setContentViewController:()

- (void) setContentViewController: (CPViewController aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 425 of file CPPopover.j.

◆ setDelegate:()

- (void) setDelegate: (id <CPPopoverDelegate>)  aDelegate
implementation

Definition at line 189 of file CPPopover.j.

◆ setPositioningRect:()

- (void) setPositioningRect: (CGRect)  aRect
implementation

Sets the frame of the popover

Parameters
aRectthe desired frame

Definition at line 117 of file CPPopover.j.

◆ showRelativeToRect:ofView:preferredEdge:()

- (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
preferredEdgeCPRectEdge representing the preferred positioning.

Definition at line 223 of file CPPopover.j.


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