API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPPopover Class Reference

#import <CPPopover.h>

+ Inheritance diagram for CPPopover:

Instance Methods

(BOOL) - animates 
 
(int) - appearance 
 
(void) - attachedWindowDidClose: 
 
(void) - attachedWindowDidShow: 
 
(BOOL) - attachedWindowShouldClose: 
 
(int) - behavior 
 
(void) - close 
 
(CGSize) - contentSize 
 
(CPViewController) - contentViewController 
 
(id) - delegate 
 
(void) - encodeWithCoder: 
 
(CPPopover) - init 
 
(id) - initWithCoder: 
 
(BOOL) - isShown 
 
(void) - parentWindowWillClose: 
 
(IBAction) - performClose: 
 
(CGRect) - positioningRect 
 
(void) - setAnimates: 
 
(void) - setAppearance: 
 
(void) - setBehavior: 
 
(void) - setBehaviour: 
 
(void) - setContentSize: 
 
(void) - setContentViewController: 
 
(void) - setDelegate: 
 
(void) - setPositioningRect: 
 
(void) - showRelativeToRect:ofView:preferredEdge: 
 
(unsigned) - styleMaskForBehavior 
 
- Instance Methods inherited from CPResponder
(BOOL) - acceptsFirstResponder 
 
(BOOL) - becomeFirstResponder 
 
(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: 
 
(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: 
 
(Class) + class 
 
(void) + exposeBinding: 
 
(void) + initialize 
 
(IMP) + instanceMethodForSelector: 
 
(BOOL) + instancesRespondToSelector: 
 
(BOOL) + isSubclassOfClass: 
 
(CPSet) + keyPathsForValuesAffectingValueForKey: 
 
(void) + load 
 
(id) + new 
 
(void) + setVersion: 
 
(Class) + superclass 
 
(int) + version 
 
- Instance Variables inherited from CPObject
Class isa
 

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
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 408 of file CPPopover.j.

- (int) appearance
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 424 of file CPPopover.j.

- (void) attachedWindowDidClose: (_CPAttachedWindow)  anAttachedWindow
implementation

Definition at line 300 of file CPPopover.j.

- (void) attachedWindowDidShow: (_CPAttachedWindow)  anAttachedWindow
implementation

Definition at line 307 of file CPPopover.j.

- (BOOL) attachedWindowShouldClose: (_CPAttachedWindow)  anAttachedWindow
implementation

Definition at line 289 of file CPPopover.j.

- (int) behavior
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 440 of file CPPopover.j.

- (void) close
implementation

Closes the popover

Definition at line 241 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 118 of file CPPopover.j.

- (CPViewController) contentViewController
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 384 of file CPPopover.j.

- (id) delegate
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 400 of file CPPopover.j.

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

- (CPPopover) init
implementation

Initialize the CPPopover witn default values

Returns
an initialized CPPopover

Reimplemented from CPObject.

Definition at line 75 of file CPPopover.j.

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

- (BOOL) isShown
implementation

Indicates if CPPopover is visible

Returns
YES if visible

Definition at line 140 of file CPPopover.j.

- (void) parentWindowWillClose: (CPNotification)  aNotification
implementation

This method is called only when a non-popover parent window is closing. In that case popovers should order out.

Definition at line 323 of file CPPopover.j.

- (IBAction) performClose: (id)  sender
implementation

Close the popover

Parameters
senderthe sender of the action

Definition at line 272 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)  aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 416 of file CPPopover.j.

- (void) setAppearance: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 432 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 153 of file CPPopover.j.

- (void) setBehaviour: (int)  aBehavior
implementation

Provided by category CPPopover(Deprecated).

Definition at line 333 of file CPPopover.j.

- (void) setContentSize: (CPSize)  aSize
implementation

Sets the size of of the popover's view

Parameters
aSizethe desired size

Definition at line 130 of file CPPopover.j.

- (void) setContentViewController: (CPViewController)  aValue
implementation

Synthesized accessor method.

Provided by category CPPopover(CPSynthesizedAccessors).

Definition at line 392 of file CPPopover.j.

- (void) setDelegate: (id)  aDelegate
implementation

Definition at line 162 of file CPPopover.j.

- (void) setPositioningRect: (CGRect)  aRect
implementation

Sets the frame of the popover

Parameters
aRectthe desired frame

Definition at line 106 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
preferredEdgeCPRectEdge representing the preferred positioning.

Definition at line 196 of file CPPopover.j.

- (unsigned) styleMaskForBehavior
implementation

Definition at line 233 of file CPPopover.j.


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