Platforms to show: All Mac Windows Linux Cross-Platform
NSCellMBS constants
- const NSAnyType = 0
- const NSBackgroundStyleDark = 1
- const NSBackgroundStyleLight = 0
- const NSBackgroundStyleLowered = 3
- const NSBackgroundStyleRaised = 2
- const NSBlueControlTint = 1
- const NSCellAllowsMixedState = 16
- const NSCellChangesContents = 14
- const NSCellDisabled = 0
- const NSCellEditable = 3
- const NSCellHasImageHorizontal = 12
- const NSCellHasImageOnLeftOrBottom = 13
- const NSCellHasOverlappingImage = 11
- const NSCellHighlighted = 5
- const NSCellHitContentArea = 1
- const NSCellHitEditableTextArea = 2
- const NSCellHitNone = 0
- const NSCellHitTrackableArea = 4
- const NSCellIsBordered = 10
- const NSCellIsInsetButton = 15
- const NSCellLightsByBackground = 9
- const NSCellLightsByContents = 6
- const NSCellLightsByGray = 7
- const NSCellState = 1
- const NSChangeBackgroundCell = 8
- const NSChangeBackgroundCellMask = 8
- const NSChangeGrayCell = 4
- const NSChangeGrayCellMask = 4
- const NSClearControlTint = 7
- const NSContentsCellMask = 1
- const NSDefaultControlTint = 0
- const NSDoubleType = 6
- const NSFloatType = 3
- const NSGraphiteControlTint = 6
- const NSImageAbove = 5
- const NSImageBelow = 4
- const NSImageCellType = 2
- const NSImageLeft = 2
- const NSImageOnly = 1
- const NSImageOverlaps = 6
- const NSImageRight = 3
- const NSIntType = 1
- const NSMiniControlSize = 2
- const NSMixedState = -1
- const NSNoCellMask = 0
- const NSNoImage = 0
- const NSNullCellType = 0
- const NSOffState = 0
- const NSOnState = 1
- const NSPositiveDoubleType = 7
- const NSPositiveFloatType = 4
- const NSPositiveIntType = 2
- const NSPushInCell = 2
- const NSPushInCellMask = 2
- const NSRegularControlSize = 0
- const NSSmallControlSize = 1
- const NSTextCellType = 1
Scaling Modes
Constant | Value | Description |
---|---|---|
NSImageScaleAxesIndependently | 1 |
Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image. Available in Mac OS X v10.5 and later. |
NSImageScaleNone | 2 |
Do not scale the image. Available in Mac OS X v10.5 and later. |
NSImageScaleProportionallyDown | 0 |
If it is too large for the destination, scale the image down while preserving the aspect ratio. Available in Mac OS X v10.5 and later. |
NSImageScaleProportionallyUpOrDown | 3 |
Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio. Available in Mac OS X v10.5 and later. |