Platforms to show: All Mac Windows Linux Cross-Platform
NSPopUpButtonCellMBS class
Super class: NSMenuItemCellMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Pop-up menus present the user with a set of choices, much the way radio buttons do, but using much less space. Pull-down menus also provide a set of choices but present the information in a slightly different way, usually to provide a set of commands from which the user can choose.
The NSPopUpButtonCellMBS class implements the user interface for the NSPopUpButtonMBS class.
Changes made to a menu (such as adding, removing, or changing the items) are not apparent while the menu is being displayed or interacted with.
Subclass of the NSMenuItemCellMBS class.
- 12 properties
- property altersStateOfSelectedItem as Boolean
- property arrowPosition as Integer
- property autoenablesItems as Boolean
- property indexOfSelectedItem as Integer
- property lastItem as NSMenuItemMBS
- property menu as NSMenuMBS
- property numberOfItems as Integer
- property preferredEdge as Integer
- property pullsDown as Boolean
- property selectedItem as NSMenuItemMBS
- property titleOfSelectedItem as String
- property usesItemFromMenu as Boolean
- 23 methods
- method addItemsWithTitles(itemTitles() as string)
- method addItemWithTitle(title as string)
- method Constructor(image as NSImageMBS) Private
- method Constructor(text as string, pullsDown as boolean)
- method dismissPopUp
- method indexOfItem(item as NSMenuItemMBS) as Integer
- method indexOfItemWithTag(tag as Integer) as Integer
- method indexOfItemWithTitle(title as String) as Integer
- method insertItemWithTitle(title as string, atIndex as Integer)
- method itemArray as NSMenuItemMBS()
- method itemAtIndex(Index as Integer) as NSMenuItemMBS
- method itemTitleAtIndex(Index as Integer) as String
- method itemTitles as String()
- method itemWithTitle(title as String) as NSMenuItemMBS
- method removeAllItems
- method removeItemAtIndex(Index as Integer)
- method removeItemWithTitle(title as string)
- method selectItem(item as NSMenuItemMBS)
- method selectItemAtIndex(Index as Integer)
- method selectItemWithTag(tag as Integer) as boolean
- method selectItemWithTitle(title as string)
- method setTitle(title as string)
- method synchronizeTitleAndSelectedItem
- 3 constants
Constants
Constant | Value | Description |
---|---|---|
NSPopUpArrowAtBottom | 2 |
One of the arrowPosition constants.
Arrow is drawn at the edge of the button, pointing toward the preferredEdge. |
NSPopUpArrowAtCenter | 1 |
One of the arrowPosition constants.
Arrow is centered vertically, pointing toward the preferredEdge. |
NSPopUpNoArrow | 0 |
One of the arrowPosition constants.
Does not display any arrow in the control. |
Super class NSMenuItemCellMBS
- 4 properties
- property menuItem as NSMenuItemMBS
- property needsDisplay as Boolean
- property needsSizing as Boolean
- property tag as Integer
- 3 methods
- method calcSize
- method Constructor(image as NSImageMBS) Private
- method Constructor(text as string)
Super class NSButtonCellMBS
- 10 properties
- property alternateImage as NSImageMBS
- property alternateTitle as String
- property attributedAlternateTitle as NSAttributedStringMBS
- property attributedTitle as NSAttributedStringMBS
- property backgroundColor as NSColorMBS
- property imageDimsWhenDisabled as Boolean
- property imagePosition as Integer
- property imageScaling as Integer
- property showsBorderOnlyWhileMouseInside as Boolean
- property sound as Variant
- 2 methods
- method Constructor(image as NSImageMBS)
- method Constructor(text as string)
Super class NSActionCellMBS
- 2 methods
- method Constructor(image as NSImageMBS)
- method Constructor(text as string)
Super class NSCellMBS
- 49 properties
- property alignment as Integer
- property allowsEditingTextAttributes as boolean
- property allowsMixedState as boolean
- property allowsUndo as boolean
- property attributedStringValue as NSAttributedStringMBS
- property backgroundStyle as Integer
- property baseWritingDirection as Integer
- property Bezeled as boolean
- property Bordered as boolean
- property className as string
- property classPath as string
- property Continuous as boolean
- property controlSize as Integer
- property controlTint as Integer
- property controlView as NSViewMBS
- property doubleValue as Double
- property Editable as boolean
- property Enabled as boolean
- property floatValue as Double
- property font as NSFontMBS
- property Handle as Integer
- property hasValidObjectValue as boolean
- property Highlighted as boolean
- property Identifier as String New in 24.1
- property image as NSImageMBS
- property importsGraphics as boolean
- property interiorBackgroundStyle as Integer
- property intValue as Integer
- property isOpaque as boolean
- property keyEquivalent as string
- property lineBreakMode as Integer
- property menu as NSMenuMBS
- property mnemonicLocation as Integer
- property refusesFirstResponder as boolean
- property Scrollable as boolean
- property Selectable as boolean
- property sendsActionOnEndEditing as boolean
- property showsFirstResponder as boolean
- property state as Integer
- property stringValue as string
- property tag as Integer
- property title as string
- property truncatesLastVisibleLine as boolean
- property type as Integer
- property userInterfaceLayoutDirection as Integer
- property usesSingleLineMode as boolean
- property wraps as boolean
- property cellAttribute(aParameter as Integer) as Integer
- property focusRingType as Integer
- 19 methods
- method acceptsFirstResponder as boolean
- method calcDrawInfo(theRect as NSRectMBS)
- method cellSize as NSSizeMBS
- method cellSizeForBounds(theRect as NSRectMBS) as NSSizeMBS
- method compare(otherCell as NSCellMBS) as Integer
- method Constructor(image as NSImageMBS)
- method Constructor(text as string)
- method drawingRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method highlightColorWithFrame(theRect as NSRectMBS, controlView as NSViewMBS) as NSColorMBS
- method imageRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method isEntryAcceptable(aString as string) as boolean
- method mnemonic as string
- method nextState as Integer
- method performClick
- method sendActionOn(mask as Integer) as Integer
- method setNextState
- method setTitleWithMnemonic(stringWithAmpersand as string)
- method titleRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method wantsNotificationForMarkedText as boolean
- 3 shared methods
- shared method defaultFocusRingType as Integer
- shared method defaultMenu as NSMenuMBS
- shared method prefersTrackingUntilMouseUp as boolean
- 61 constants
This class has no sub classes.
Blog Entries
Release notes
- Version 17.1
- Added NSPopUpButtonCellMBS and NSMenuItemCellMBS classes.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSPopoverTouchBarItemMBS - NSPopUpButtonMBS