API  1.0.0
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) - acceptsFirstMouse:
 
(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bezelRectForBounds:
 
(CPTextFieldBezelStyle) - bezelStyle
 
(CGRect) - contentRectForBounds:
 
(void) - copy:
 
(void) - cursorUpdate:
 
(void) - cut:
 
(void) - delete:
 
(void) - deleteBackward:
 
(void) - deleteForward:
 
(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) - rightMouseDown:
 
(void) - selectAll:
 
(CPRange) - selectedRange
 
(void) - selectText:
 
(void) - setBezeled:
 
(void) - setBezelStyle:
 
(void) - setBordered:
 
(void) - setControlSize:
 
(void) - setDelegate:
 
(void) - setDrawsBackground:
 
(void) - setEditable:
 
(void) - setEnabled:
 
(void) - setPlaceholderString:
 
(void) - setSecure:
 
(void) - setSelectable:
 
(void) - setSelectedRange:
 
(void) - setTextColor:
 
(void) - setTextFieldBackgroundColor:
 
(void) - setValue:forThemeAttribute:
 
(void) - sizeToFit
 
(void) - takeValueFromKeyPath:ofObjects:
 
(void) - textDidBeginEditing:
 
(void) - textDidBlur:
 
(void) - textDidEndEditing:
 
(void) - textDidFocus:
 
(CPColor- textFieldBackgroundColor
 
(void) - updateTrackingAreas
 
(BOOL) - validateUserInterfaceItem:
 
(void) - viewDidHide
 
(void) - viewDidUnhide
 
- Instance Methods inherited from CPControl
(SEL) - action
 
(CPTextAlignment) - alignment
 
(CPWritingDirection) - baseWritingDirection
 
(BOOL) - continueTracking:at:
 
(CPControlSize) - controlSize
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(void) - performClick:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setBaseWritingDirection:
 
(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) - 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
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(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:
 
(CPString- debug_description
 
(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:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setDOMClassName:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - viewDidEndLiveResize
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

(CPString+ defaultThemeClass
 
(CPDictionary+ 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
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

Detailed Description

Definition at line 2 of file CPComboBox.h.

Method Documentation

◆ addItemsWithObjectValues:()

- (void) addItemsWithObjectValues: (CPArray)  objects
implementation

Definition at line 307 of file CPComboBox.j.

◆ addItemWithObjectValue:()

- (void) addItemWithObjectValue: (id)  anObject
implementation

Definition at line 314 of file CPComboBox.j.

◆ comboBoxCompletedString:()

- (CPString) comboBoxCompletedString: (CPString uncompletedString
implementation

Provided by category CPComboBox(CPComboBoxDataSource).

Definition at line 1082 of file CPComboBox.j.

◆ comboBoxSelectionDidChange:()

- (void) comboBoxSelectionDidChange: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 1051 of file CPComboBox.j.

◆ comboBoxSelectionIsChanging:()

- (void) comboBoxSelectionIsChanging: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 1042 of file CPComboBox.j.

◆ comboBoxWillDismiss:()

- (void) comboBoxWillDismiss: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 1069 of file CPComboBox.j.

◆ comboBoxWillPopUp:()

- (void) comboBoxWillPopUp: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 1060 of file CPComboBox.j.

◆ completedString:()

- (CPString) completedString: (CPString substring
implementation

Definition at line 658 of file CPComboBox.j.

◆ completes()

- (BOOL) completes
implementation

Definition at line 648 of file CPComboBox.j.

◆ createEphemeralSubviewNamed:()

- (CPView) createEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPTextField.

Definition at line 917 of file CPComboBox.j.

◆ dataSource()

- (id< CPComboBoxDataSource >) dataSource
implementation

Definition at line 256 of file CPComboBox.j.

◆ defaultThemeClass()

+ (CPString) defaultThemeClass
implementation

Reimplemented from CPTextField.

Definition at line 82 of file CPComboBox.j.

◆ delegate()

- (id< CPComboBoxDelegate >) delegate
implementation

Reimplemented from CPTextField.

Definition at line 216 of file CPComboBox.j.

◆ deselectItemAtIndex:()

- (void) deselectItemAtIndex: (int)  index
implementation

Definition at line 596 of file CPComboBox.j.

◆ encodeWithCoder:()

- (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 1186 of file CPComboBox.j.

◆ forceSelection()

- (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 674 of file CPComboBox.j.

◆ hasVerticalScroller()

- (BOOL) hasVerticalScroller
implementation

Definition at line 135 of file CPComboBox.j.

◆ indexOfItemWithObjectValue:()

- (int) indexOfItemWithObjectValue: (id)  anObject
implementation

Definition at line 482 of file CPComboBox.j.

◆ indexOfSelectedItem()

- (int) indexOfSelectedItem
implementation

Definition at line 607 of file CPComboBox.j.

◆ initWithCoder:()

- (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 1164 of file CPComboBox.j.

◆ initWithFrame:()

- (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 103 of file CPComboBox.j.

◆ insertItemWithObjectValue:atIndex:()

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

Definition at line 321 of file CPComboBox.j.

◆ intercellSpacing()

- (CGSize) intercellSpacing
implementation

Definition at line 153 of file CPComboBox.j.

◆ interpretKeyEvents:()

- (void) interpretKeyEvents: (CPArray)  events
implementation

Definition at line 720 of file CPComboBox.j.

◆ isButtonBordered()

- (BOOL) isButtonBordered
implementation

Definition at line 169 of file CPComboBox.j.

◆ itemHeight()

- (float) itemHeight
implementation

Definition at line 182 of file CPComboBox.j.

◆ itemObjectValueAtIndex:()

- (id) itemObjectValueAtIndex: (int)  index
implementation

Definition at line 490 of file CPComboBox.j.

◆ itemWasClicked:()

- (void) itemWasClicked: (CPNotification aNotification
implementation

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

Definition at line 588 of file CPComboBox.j.

◆ layoutSubviews()

- (void) layoutSubviews
implementation

Reimplemented from CPTextField.

Definition at line 929 of file CPComboBox.j.

◆ listDelegate()

- (_CPPopUpList) listDelegate
implementation

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

Definition at line 383 of file CPComboBox.j.

◆ listDidDismiss:()

- (void) listDidDismiss: (CPNotification aNotification
implementation

The receiver receives this notification when the list is closed.

Definition at line 579 of file CPComboBox.j.

◆ listIsVisible()

- (BOOL) listIsVisible
implementation

Definition at line 538 of file CPComboBox.j.

◆ noteNumberOfItemsChanged()

- (void) noteNumberOfItemsChanged
implementation

Definition at line 498 of file CPComboBox.j.

◆ numberOfItems()

- (int) numberOfItems
implementation

Definition at line 370 of file CPComboBox.j.

◆ numberOfVisibleItems()

- (int) numberOfVisibleItems
implementation

Definition at line 203 of file CPComboBox.j.

◆ objectValueOfSelectedItem()

- (id) objectValueOfSelectedItem
implementation

Definition at line 612 of file CPComboBox.j.

◆ objectValues()

- (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 338 of file CPComboBox.j.

◆ paste:()

- (void) paste: (id)  sender
implementation

Reimplemented from CPTextField.

Definition at line 742 of file CPComboBox.j.

◆ performKeyEquivalent:()

- (BOOL) performKeyEquivalent: (CPEvent anEvent
implementation

Override of CPView -performKeyEquivalent

Reimplemented from CPView.

Definition at line 790 of file CPComboBox.j.

◆ popupButtonRectForBounds:()

- (CGRect) popupButtonRectForBounds: (CGRect)  bounds
implementation

Definition at line 895 of file CPComboBox.j.

◆ popUpList()

- (void) popUpList
implementation

Definition at line 519 of file CPComboBox.j.

◆ rectForEphemeralSubviewNamed:()

- (CGRect) rectForEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPTextField.

Definition at line 909 of file CPComboBox.j.

◆ reloadData()

- (void) reloadData
implementation

Definition at line 513 of file CPComboBox.j.

◆ reloadDataSourceForSelector:()

- (void) reloadDataSourceForSelector: (SEL)  cmd
implementation

Definition at line 544 of file CPComboBox.j.

◆ removeAllItems()

- (void) removeAllItems
implementation

Definition at line 346 of file CPComboBox.j.

◆ removeItemAtIndex:()

- (void) removeItemAtIndex: (int)  index
implementation

Definition at line 353 of file CPComboBox.j.

◆ removeItemWithObjectValue:()

- (void) removeItemWithObjectValue: (id)  anObject
implementation

Definition at line 363 of file CPComboBox.j.

◆ resignFirstResponder()

- (BOOL) resignFirstResponder
implementation

Reimplemented from CPTextField.

Definition at line 825 of file CPComboBox.j.

◆ scrollItemAtIndexToTop:()

- (void) scrollItemAtIndexToTop: (int)  index
implementation

Definition at line 503 of file CPComboBox.j.

◆ scrollItemAtIndexToVisible:()

- (void) scrollItemAtIndexToVisible: (int)  index
implementation

Definition at line 508 of file CPComboBox.j.

◆ selectItemAtIndex:()

- (void) selectItemAtIndex: (int)  index
implementation

Definition at line 627 of file CPComboBox.j.

◆ selectItemWithObjectValue:()

- (void) selectItemWithObjectValue: (id)  anObject
implementation

Definition at line 638 of file CPComboBox.j.

◆ sendAction:to:()

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

Reimplemented from CPControl.

Definition at line 696 of file CPComboBox.j.

◆ setAlignment:()

- (void) setAlignment: (CPTextAlignment)  alignment
implementation

Sets the text alignment of the control.

CPLeftTextAlignment
CPCenterTextAlignment
CPRightTextAlignment
CPJustifiedTextAlignment
CPNaturalTextAlignment

Reimplemented from CPControl.

Definition at line 885 of file CPComboBox.j.

◆ setButtonBordered:()

- (void) setButtonBordered: (BOOL)  flag
implementation

Definition at line 174 of file CPComboBox.j.

◆ setCompletes:()

- (void) setCompletes: (BOOL)  flag
implementation

Definition at line 653 of file CPComboBox.j.

◆ setContent:()

- (void) setContent: (CPArray)  anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1135 of file CPComboBox.j.

◆ setContentValues:()

- (void) setContentValues: (CPArray)  anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1127 of file CPComboBox.j.

◆ setDataSource:()

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

Definition at line 264 of file CPComboBox.j.

◆ setDelegate:()

- (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 227 of file CPComboBox.j.

◆ setFont:()

- (void) setFont: (CPFont aFont
implementation

Sets the font of the control.

Reimplemented from CPControl.

Definition at line 877 of file CPComboBox.j.

◆ setForceSelection:()

- (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 688 of file CPComboBox.j.

◆ setHasVerticalScroller:()

- (void) setHasVerticalScroller: (BOOL)  flag
implementation

Definition at line 140 of file CPComboBox.j.

◆ setIntercellSpacing:()

- (void) setIntercellSpacing: (CGSize)  aSize
implementation

Definition at line 158 of file CPComboBox.j.

◆ setItemHeight:()

- (void) setItemHeight: (float)  itemHeight
implementation

Definition at line 187 of file CPComboBox.j.

◆ setListDelegate:()

- (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 393 of file CPComboBox.j.

◆ setNumberOfVisibleItems:()

- (void) setNumberOfVisibleItems: (int)  visibleItems
implementation

Definition at line 208 of file CPComboBox.j.

◆ setObjectValue:()

- (void) setObjectValue: (id)  object
implementation

Reimplemented from CPTextField.

Definition at line 712 of file CPComboBox.j.

◆ setUsesDataSource:()

- (void) setUsesDataSource: (BOOL)  flag
implementation

Definition at line 289 of file CPComboBox.j.

◆ takeStringValueFromList()

- (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 557 of file CPComboBox.j.

◆ textDidChange:()

- (void) textDidChange: (CPNotification aNotification
implementation

Reimplemented from CPTextField.

Definition at line 759 of file CPComboBox.j.

◆ themeAttributes()

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPTextField.

Definition at line 87 of file CPComboBox.j.

◆ usesDataSource()

- (BOOL) usesDataSource
implementation

Definition at line 284 of file CPComboBox.j.


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