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

#import <CPComboBox.h>

+ Inheritance diagram for CPComboBox:

Instance Methods

(void) - addItemsWithObjectValues:
 
(void) - addItemWithObjectValue:
 
(CPString- comboBoxCompletedString:
 
(void) - comboBoxSelectionDidChange:
 
(void) - comboBoxSelectionIsChanging:
 
(void) - comboBoxWillDismiss:
 
(void) - comboBoxWillPopUp:
 
(CPString- completedString:
 
(BOOL) - completes
 
(CPView- createEphemeralSubviewNamed:
 
(id< CPComboBoxDataSource >) - dataSource
 
(id< CPComboBoxDelegate >) - delegate
 
(void) - deselectItemAtIndex:
 
(void) - encodeWithCoder:
 
(BOOL) - forceSelection
 
(BOOL) - hasVerticalScroller
 
(int) - indexOfItemWithObjectValue:
 
(int) - indexOfSelectedItem
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertItemWithObjectValue:atIndex:
 
(CGSize) - intercellSpacing
 
(void) - interpretKeyEvents:
 
(BOOL) - isButtonBordered
 
(float) - itemHeight
 
(id) - itemObjectValueAtIndex:
 
(void) - itemWasClicked:
 
(void) - layoutSubviews
 
(_CPPopUpList) - listDelegate
 
(void) - listDidDismiss:
 
(BOOL) - listIsVisible
 
(void) - noteNumberOfItemsChanged
 
(int) - numberOfItems
 
(int) - numberOfVisibleItems
 
(id) - objectValueOfSelectedItem
 
(CPArray- objectValues
 
(void) - paste:
 
(BOOL) - performKeyEquivalent:
 
(CGRect) - popupButtonRectForBounds:
 
(void) - popUpList
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reloadData
 
(void) - reloadDataSourceForSelector:
 
(void) - removeAllItems
 
(void) - removeItemAtIndex:
 
(void) - removeItemWithObjectValue:
 
(BOOL) - resignFirstResponder
 
(void) - scrollItemAtIndexToTop:
 
(void) - scrollItemAtIndexToVisible:
 
(void) - selectItemAtIndex:
 
(void) - selectItemWithObjectValue:
 
(BOOL) - sendAction:to:
 
(void) - setAlignment:
 
(void) - setButtonBordered:
 
(void) - setCompletes:
 
(void) - setContent:
 
(void) - setContentValues:
 
(void) - setDataSource:
 
(void) - setDelegate:
 
(void) - setFont:
 
(void) - setForceSelection:
 
(void) - setHasVerticalScroller:
 
(void) - setIntercellSpacing:
 
(void) - setItemHeight:
 
(void) - setListDelegate:
 
(void) - setNumberOfVisibleItems:
 
(void) - setObjectValue:
 
(void) - setUsesDataSource:
 
(BOOL) - takeStringValueFromList
 
(void) - textDidChange:
 
(BOOL) - usesDataSource
 
- Instance Methods inherited from CPTextField
(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bezelRectForBounds:
 
(CPTextFieldBezelStyle) - bezelStyle
 
(CGRect) - contentRectForBounds:
 
(void) - copy:
 
(void) - cut:
 
(void) - deleteBackward:
 
(void) - doCommandBySelector:
 
(BOOL) - drawsBackground
 
(void) - insertNewline:
 
(void) - insertNewlineIgnoringFieldEditor:
 
(void) - insertTabIgnoringFieldEditor:
 
(BOOL) - isBezeled
 
(BOOL) - isBordered
 
(BOOL) - isEditable
 
(BOOL) - isSecure
 
(BOOL) - isSelectable
 
(void) - keyDown:
 
(void) - keyUp:
 
(void) - mouseDown:
 
(void) - mouseDragged:
 
(void) - mouseUp:
 
(BOOL) - needsPanelToBecomeKey
 
(id) - objectValue
 
(CPString- placeholderString
 
(void) - selectAll:
 
(CPRange) - selectedRange
 
(void) - selectText:
 
(void) - setBezeled:
 
(void) - setBezelStyle:
 
(void) - setBordered:
 
(void) - setDelegate:
 
(void) - setDrawsBackground:
 
(void) - setEditable:
 
(void) - setEnabled:
 
(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) - setContinuous:
 
(void) - setDoubleValue:
 
(void) - setFloatValue:
 
(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:
 
(CPString- stringValue
 
(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) - 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) - insertTab:
 
(void) - insertText:
 
(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

(CPString+ defaultThemeClass
 
(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 CPComboBox.h.

Method Documentation

- (void) addItemsWithObjectValues: (CPArray objects
implementation

Definition at line 275 of file CPComboBox.j.

- (void) addItemWithObjectValue: (id)  anObject
implementation

Definition at line 282 of file CPComboBox.j.

- (CPString) comboBoxCompletedString: (CPString uncompletedString
implementation

Provided by category CPComboBox(CPComboBoxDataSource).

Definition at line 976 of file CPComboBox.j.

- (void) comboBoxSelectionDidChange: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 954 of file CPComboBox.j.

- (void) comboBoxSelectionIsChanging: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 948 of file CPComboBox.j.

- (void) comboBoxWillDismiss: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 966 of file CPComboBox.j.

- (void) comboBoxWillPopUp: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 960 of file CPComboBox.j.

- (CPString) completedString: (CPString substring
implementation

Definition at line 602 of file CPComboBox.j.

- (BOOL) completes
implementation

Definition at line 592 of file CPComboBox.j.

- (CPView) createEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPTextField.

Definition at line 847 of file CPComboBox.j.

- (id< CPComboBoxDataSource >) dataSource
implementation

Definition at line 228 of file CPComboBox.j.

+ (CPString) defaultThemeClass
implementation

Reimplemented from CPTextField.

Definition at line 53 of file CPComboBox.j.

- (id< CPComboBoxDelegate >) delegate
implementation

Reimplemented from CPTextField.

Definition at line 168 of file CPComboBox.j.

- (void) deselectItemAtIndex: (int)  index
implementation

Definition at line 540 of file CPComboBox.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 CPComboBox(CPCoding).

Definition at line 1082 of file CPComboBox.j.

- (BOOL) forceSelection
implementation

Returns whether the combo box forces the user to enter or select an item that is in the item list.

Definition at line 618 of file CPComboBox.j.

- (BOOL) hasVerticalScroller
implementation

Definition at line 103 of file CPComboBox.j.

- (int) indexOfItemWithObjectValue: (id)  anObject
implementation

Definition at line 425 of file CPComboBox.j.

- (int) indexOfSelectedItem
implementation

Definition at line 551 of file CPComboBox.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 CPComboBox(CPCoding).

Definition at line 1060 of file CPComboBox.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPTextField.

Definition at line 71 of file CPComboBox.j.

- (void) insertItemWithObjectValue: (id)  anObject
atIndex: (int)  anIndex 
implementation

Definition at line 289 of file CPComboBox.j.

- (CGSize) intercellSpacing
implementation

Definition at line 119 of file CPComboBox.j.

- (void) interpretKeyEvents: (CPArray events
implementation

Reimplemented from CPResponder.

Definition at line 664 of file CPComboBox.j.

- (BOOL) isButtonBordered
implementation

Definition at line 129 of file CPComboBox.j.

- (float) itemHeight
implementation

Definition at line 142 of file CPComboBox.j.

- (id) itemObjectValueAtIndex: (int)  index
implementation

Definition at line 433 of file CPComboBox.j.

- (void) itemWasClicked: (CPNotification aNotification
implementation

The receiver receives this notification when an item in the list is clicked.

Definition at line 532 of file CPComboBox.j.

- (void) layoutSubviews
implementation

Reimplemented from CPTextField.

Definition at line 859 of file CPComboBox.j.

- (_CPPopUpList) listDelegate
implementation

Returns the delegate to be used when creating the pop up list.

Definition at line 351 of file CPComboBox.j.

- (void) listDidDismiss: (CPNotification aNotification
implementation

The receiver receives this notification when the list is closed.

Definition at line 523 of file CPComboBox.j.

- (BOOL) listIsVisible
implementation

Definition at line 482 of file CPComboBox.j.

- (void) noteNumberOfItemsChanged
implementation

Definition at line 441 of file CPComboBox.j.

- (int) numberOfItems
implementation

Definition at line 338 of file CPComboBox.j.

- (int) numberOfVisibleItems
implementation

Definition at line 155 of file CPComboBox.j.

- (id) objectValueOfSelectedItem
implementation

Definition at line 556 of file CPComboBox.j.

- (CPArray) objectValues
implementation

Returns the internal array of items. NOTE: Unlike Cocoa the array is mutable, since all arrays in Objective-J are mutable. But you should treat it as an immutable array. Do NOT attempt to change the returned array in any way.

If usesDataSource is YES, a warning is logged and an empty array is returned.

Definition at line 306 of file CPComboBox.j.

- (void) paste: (id)  sender
implementation

Reimplemented from CPTextField.

Definition at line 686 of file CPComboBox.j.

- (BOOL) performKeyEquivalent: (CPEvent anEvent
implementation

Override of CPView -performKeyEquivalent

Reimplemented from CPView.

Definition at line 734 of file CPComboBox.j.

- (CGRect) popupButtonRectForBounds: (CGRect)  bounds
implementation

Definition at line 825 of file CPComboBox.j.

- (void) popUpList
implementation

Definition at line 462 of file CPComboBox.j.

- (CGRect) rectForEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPTextField.

Definition at line 839 of file CPComboBox.j.

- (void) reloadData
implementation

Definition at line 456 of file CPComboBox.j.

- (void) reloadDataSourceForSelector: (SEL)  cmd
implementation

Definition at line 488 of file CPComboBox.j.

- (void) removeAllItems
implementation

Definition at line 314 of file CPComboBox.j.

- (void) removeItemAtIndex: (int)  index
implementation

Definition at line 321 of file CPComboBox.j.

- (void) removeItemWithObjectValue: (id)  anObject
implementation

Definition at line 331 of file CPComboBox.j.

- (BOOL) resignFirstResponder
implementation

Reimplemented from CPTextField.

Definition at line 769 of file CPComboBox.j.

- (void) scrollItemAtIndexToTop: (int)  index
implementation

Definition at line 446 of file CPComboBox.j.

- (void) scrollItemAtIndexToVisible: (int)  index
implementation

Definition at line 451 of file CPComboBox.j.

- (void) selectItemAtIndex: (int)  index
implementation

Definition at line 571 of file CPComboBox.j.

- (void) selectItemWithObjectValue: (id)  anObject
implementation

Definition at line 582 of file CPComboBox.j.

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

Reimplemented from CPControl.

Definition at line 640 of file CPComboBox.j.

- (void) setAlignment: (CPTextAlignment)  alignment
implementation

Sets the text alignment of the control.

CPLeftTextAlignment
CPCenterTextAlignment
CPRightTextAlignment
CPJustifiedTextAlignment
CPNaturalTextAlignment

Reimplemented from CPControl.

Definition at line 817 of file CPComboBox.j.

- (void) setButtonBordered: (BOOL)  flag
implementation

Definition at line 134 of file CPComboBox.j.

- (void) setCompletes: (BOOL)  flag
implementation

Definition at line 597 of file CPComboBox.j.

- (void) setContent: (CPArray anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1029 of file CPComboBox.j.

- (void) setContentValues: (CPArray anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1021 of file CPComboBox.j.

- (void) setDataSource: (id < CPComboBoxDataSource >)  aSource
implementation

Definition at line 236 of file CPComboBox.j.

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

Sets the CPComboBox delegate. Note that although the Cocoa docs say that the delegate must conform to the NSComboBoxDelegate protocol, in actual fact it doesn't. Also note that the same delegate may conform to the NSTextFieldDelegate protocol.

Definition at line 179 of file CPComboBox.j.

- (void) setFont: (CPFont aFont
implementation

Sets the font of the control.

Reimplemented from CPControl.

Definition at line 811 of file CPComboBox.j.

- (void) setForceSelection: (BOOL)  flag
implementation

Sets whether the combo box forces the user to enter or select an item that is in the item list. If flag is YES and the user enters a value that is not in the list, when the field loses focus it will revert to the previous value. If flag is NO, the user can enter any value they wish.

Note that this flag is ignored if setStringValue or setObjectValue are called directly.

Definition at line 632 of file CPComboBox.j.

- (void) setHasVerticalScroller: (BOOL)  flag
implementation

Definition at line 108 of file CPComboBox.j.

- (void) setIntercellSpacing: (CGSize)  aSize
implementation

Definition at line 124 of file CPComboBox.j.

- (void) setItemHeight: (float)  itemHeight
implementation

Definition at line 147 of file CPComboBox.j.

- (void) setListDelegate: (_CPPopUpList)  aDelegate
implementation

Sets the delegate to be used when creating the pop up list. By default this is _CPPopUpList. If you are using a subclass of _CPPopUpList, call this method with your subclass.

Definition at line 361 of file CPComboBox.j.

- (void) setNumberOfVisibleItems: (int)  visibleItems
implementation

Definition at line 160 of file CPComboBox.j.

- (void) setObjectValue: (id)  object
implementation

Reimplemented from CPTextField.

Definition at line 656 of file CPComboBox.j.

- (void) setUsesDataSource: (BOOL)  flag
implementation

Definition at line 257 of file CPComboBox.j.

- (BOOL) takeStringValueFromList
implementation

If the list is non-empty, sets the value of the field from the currently selected value of the list and returns YES. If the list is empty or the list has no selected item, returns NO.

Definition at line 501 of file CPComboBox.j.

- (void) textDidChange: (CPNotification aNotification
implementation

Reimplemented from CPTextField.

Definition at line 703 of file CPComboBox.j.

+ (id) themeAttributes
implementation

Reimplemented from CPTextField.

Definition at line 58 of file CPComboBox.j.

- (BOOL) usesDataSource
implementation

Definition at line 252 of file CPComboBox.j.


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