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

#import <CPTokenField.h>

+ Inheritance diagram for CPTokenField:

Instance Methods

(BOOL) - becomeFirstResponder
 
(void) - cancelOperation:
 
(CPTimeInterval) - completionDelay
 
(void) - deleteBackward:
 
(void) - deleteForward:
 
(void) - encodeWithCoder:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - keyDown:
 
(void) - keyUp:
 
(void) - layoutSubviews
 
(void) - mouseDown:
 
(void) - mouseUp:
 
(void) - moveDown:
 
(void) - moveLeft:
 
(void) - moveLeftAndModifySelection:
 
(void) - moveRight:
 
(void) - moveRightAndModifySelection:
 
(void) - moveUp:
 
(id) - objectValue
 
(BOOL) - resignFirstResponder
 
(void) - sendAction:to:
 
(void) - setCompletionDelay:
 
(void) - setEditable:
 
(void) - setEnabled:
 
(void) - setObjectValue:
 
(void) - setTokenizingCharacterSet:
 
(CPString- stringValue
 
(void) - textDidChange:
 
(CPCharacterSet- tokenizingCharacterSet
 
- Instance Methods inherited from CPTextField
(BOOL) - acceptsFirstResponder
 
(CGRect) - bezelRectForBounds:
 
(CPTextFieldBezelStyle) - bezelStyle
 
(CGRect) - contentRectForBounds:
 
(void) - copy:
 
(CPView- createEphemeralSubviewNamed:
 
(void) - cut:
 
(id) - delegate
 
(void) - doCommandBySelector:
 
(BOOL) - drawsBackground
 
(id) - initWithFrame:
 
(void) - insertNewlineIgnoringFieldEditor:
 
(void) - insertTabIgnoringFieldEditor:
 
(BOOL) - isBezeled
 
(BOOL) - isBordered
 
(BOOL) - isEditable
 
(BOOL) - isSecure
 
(BOOL) - isSelectable
 
(void) - mouseDragged:
 
(BOOL) - needsPanelToBecomeKey
 
(void) - paste:
 
(CPString- placeholderString
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - selectAll:
 
(CPRange) - selectedRange
 
(void) - selectText:
 
(void) - setBezeled:
 
(void) - setBezelStyle:
 
(void) - setBordered:
 
(void) - setDelegate:
 
(void) - setDrawsBackground:
 
(void) - setPlaceholderString:
 
(void) - setSecure:
 
(void) - setSelectable:
 
(void) - setSelectedRange:
 
(void) - setTextFieldBackgroundColor:
 
(void) - sizeToFit
 
(void) - takeValueFromKeyPath:ofObjects:
 
(void) - textDidBlur:
 
(void) - textDidFocus:
 
(CPColor- textFieldBackgroundColor
 
- Instance Methods inherited from CPControl
(SEL) - action
 
(CPTextAlignment) - alignment
 
(BOOL) - continueTracking:at:
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPImageScaling) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(int) - nextState
 
(void) - performClick:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setContinuous:
 
(void) - setDoubleValue:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setImageScaling:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(id) - currentValueForThemeAttribute:
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGSize) - frameSize
 
(BOOL) - hasThemeAttribute:
 
(BOOL) - hasThemeState:
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(void) - reflectScrolledClipView:
 
(CPArray- registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - registerThemeValues:
 
(void) - registerThemeValues:inherit:
 
(void) - removeFromSuperview
 
(void) - replaceSubview:with:
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setTheme:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray- subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(CPTheme- theme
 
(CPString- themeClass
 
(unsigned) - themeState
 
(CPString- toolTip
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(id) - valueForThemeAttribute:
 
(id) - valueForThemeAttribute:inState:
 
(void) - viewDidChangeTheme
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 
- Instance Methods inherited from CPResponder
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - interpretKeyEvents:
 
(CPMenu- menu
 
(void) - mouseMoved:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(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:
 

Class Methods

(CPTimeInterval) + defaultCompletionDelay
 
(CPString+ defaultThemeClass
 
(CPCharacterSet+ defaultTokenizingCharacterSet
 
(id) + themeAttributes
 
- Class Methods inherited from CPTextField
(CPTextField+ labelWithTitle:
 
(CPTextField+ labelWithTitle:theme:
 
(CPTextField+ roundedTextFieldWithStringValue:placeholder:width:
 
(CPTextField+ roundedTextFieldWithStringValue:placeholder:width:theme:
 
(CPTextField+ textFieldWithStringValue:placeholder:width:
 
(CPTextField+ textFieldWithStringValue:placeholder:width:theme:
 
- Class Methods inherited from CPControl
(void) + initialize
 
- Class Methods inherited from CPView
(CPMenu+ defaultMenu
 
(CPSet+ keyPathsForValuesAffectingBounds
 
(CPSet+ keyPathsForValuesAffectingFrame
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

Definition at line 2 of file CPTokenField.h.

Method Documentation

- (BOOL) becomeFirstResponder
implementation

Notifies the receiver that it will become the first responder. The receiver can reject first responder if it returns NO. The default implementation always returns YES.

Returns
YES if the receiver accepts first responder status.

Reimplemented from CPTextField.

Definition at line 304 of file CPTokenField.j.

- (void) cancelOperation: (id)  sender
implementation

Definition at line 747 of file CPTokenField.j.

- (CPTimeInterval) completionDelay
implementation

Definition at line 955 of file CPTokenField.j.

+ (CPTimeInterval) defaultCompletionDelay
implementation

Definition at line 74 of file CPTokenField.j.

+ (CPString) defaultThemeClass
implementation

Reimplemented from CPTextField.

Definition at line 79 of file CPTokenField.j.

+ (CPCharacterSet) defaultTokenizingCharacterSet
implementation

Definition at line 69 of file CPTokenField.j.

- (void) deleteBackward: (id)  sender
implementation

Reimplemented from CPTextField.

Definition at line 832 of file CPTokenField.j.

- (void) deleteForward: (id)  sender
implementation

Definition at line 858 of file CPTokenField.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Encodes the data of this textfield into the provided coder.

Parameters
aCoderthe coder into which the data will be written

Reimplemented from CPTextField.

Provided by category CPTokenField(CPCoding).

Definition at line 1435 of file CPTokenField.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the textfield with data from a coder.

Parameters
aCoderthe coder from which to read the textfield data
Returns
the initialized textfield

Reimplemented from CPTextField.

Provided by category CPTokenField(CPCoding).

Definition at line 1417 of file CPTokenField.j.

- (id) initWithFrame: (CPRect)  frame
implementation

Definition at line 89 of file CPTokenField.j.

- (void) insertNewline: (id)  aSender
implementation

Insert a line break at the caret position or selection.

Parameters
aSenderthe object requesting this

Reimplemented from CPTextField.

Definition at line 688 of file CPTokenField.j.

- (void) insertTab: (id)  sender
implementation

Reimplemented from CPResponder.

Definition at line 701 of file CPTokenField.j.

- (void) insertText: (CPString aString
implementation

Inserts some text at the caret position or selection.

Parameters
aStringthe string to insert

Reimplemented from CPResponder.

Definition at line 718 of file CPTokenField.j.

- (void) keyDown: (CPEvent anEvent
implementation

Notifies the receiver that the user has pressed a key.

Parameters
anEventinformation about the key press

Reimplemented from CPTextField.

Definition at line 903 of file CPTokenField.j.

- (void) keyUp: (CPEvent anEvent
implementation

Notifies the receiver that the user has released a key.

Parameters
anEventinformation about the key press

Reimplemented from CPTextField.

Definition at line 917 of file CPTokenField.j.

- (void) layoutSubviews
implementation

Reimplemented from CPTextField.

Definition at line 963 of file CPTokenField.j.

- (void) mouseDown: (CPEvent anEvent
implementation

Notifies the receiver that the user has clicked the mouse down in its area.

Parameters
anEventcontains information about the click

Reimplemented from CPTextField.

Definition at line 440 of file CPTokenField.j.

- (void) mouseUp: (CPEvent anEvent
implementation

Notifies the receiver that the user has released the left mouse button.

Parameters
anEventcontains information about the release

Reimplemented from CPTextField.

Definition at line 449 of file CPTokenField.j.

- (void) moveDown: (id)  sender
implementation

Definition at line 682 of file CPTokenField.j.

- (void) moveLeft: (id)  sender
implementation

Definition at line 752 of file CPTokenField.j.

- (void) moveLeftAndModifySelection: (id)  sender
implementation

Definition at line 772 of file CPTokenField.j.

- (void) moveRight: (id)  sender
implementation

Definition at line 789 of file CPTokenField.j.

- (void) moveRightAndModifySelection: (id)  sender
implementation

Definition at line 816 of file CPTokenField.j.

- (void) moveUp: (id)  sender
implementation

Definition at line 676 of file CPTokenField.j.

- (id) objectValue
implementation

Returns the string in the text field.

Reimplemented from CPTextField.

Definition at line 485 of file CPTokenField.j.

- (BOOL) resignFirstResponder
implementation

Notifies the receiver that it has been asked to give up first responder status.

Returns
YES if the receiver is willing to give up first responder status.

Reimplemented from CPTextField.

Definition at line 382 of file CPTokenField.j.

- (void) sendAction: (SEL)  anAction
to: (id)  anObject 
implementation

Causes anAction to be sent to anObject.

Parameters
anActionthe action to send
anObjectthe object to which the action will be sent

Reimplemented from CPControl.

Definition at line 609 of file CPTokenField.j.

- (void) setCompletionDelay: (CPTimeInterval)  delay
implementation

Definition at line 950 of file CPTokenField.j.

- (void) setEditable: (BOOL)  shouldBeEditable
implementation

Sets whether or not the receiver text field can be edited. If NO, any ongoing edit is ended.

Reimplemented from CPTextField.

Definition at line 602 of file CPTokenField.j.

- (void) setEnabled: (BOOL)  shouldBeEnabled
implementation

Sets whether the field reacts to events. If NO, any ongoing edit is ended.

Reimplemented from CPTextField.

Definition at line 588 of file CPTokenField.j.

- (void) setObjectValue: (id)  anObject
implementation

Sets the receiver's object value.

Reimplemented from CPTextField.

Definition at line 512 of file CPTokenField.j.

- (void) setTokenizingCharacterSet: (CPCharacterSet aValue
implementation

Synthesized accessor method.

Provided by category CPTokenField(CPSynthesizedAccessors).

Definition at line 1458 of file CPTokenField.j.

- (CPString) stringValue
implementation

Returns the receiver's string value.

Reimplemented from CPControl.

Definition at line 480 of file CPTokenField.j.

- (void) textDidChange: (CPNotification aNotification
implementation

Reimplemented from CPTextField.

Definition at line 927 of file CPTokenField.j.

+ (id) themeAttributes
implementation

Reimplemented from CPTextField.

Definition at line 84 of file CPTokenField.j.

- (CPCharacterSet) tokenizingCharacterSet
implementation

Synthesized accessor method.

Provided by category CPTokenField(CPSynthesizedAccessors).

Definition at line 1450 of file CPTokenField.j.


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