Process:

    实例属性

    以下为 TouchBarScrubber 实例的可用属性:

    touchBarScrubber.items

    touchBarScrubber.selectedStyle

    Scrubber中被选择的物品需要有的,一个代表的样式的String。 改变这个值会立刻刷新touch bar的控件。可选值:

    • background - 映射为[NSScrubberSelectionStyle roundedBackgroundStyle]
    • outline - 映射到
    • none - Removes all styles.

    touchBarScrubber.overlayStyle

    一个String,用来表示在scrubber内被选择的组件应有的样式。 该样式将会覆盖在scrubber组件之上而非其后。 改变这个值会立刻刷新touch bar的控件。 可选值:

    • background - 映射为[NSScrubberSelectionStyle roundedBackgroundStyle]
    • outline - 映射为[NSScrubberSelectionStyle outlineOverlayStyle]
    • none - Removes all styles.

    touchBarScrubber.showArrowButtons

    touchBarScrubber.mode

    一个代表scrubber模式的string。改变这个值会立刻刷新touch bar的控件。可选值:

    • fixed - 映射到NSScrubberModeFixed

    touchBarScrubber.continuous

    一个Boolean值,表示scrubber是否连续。改变这个值会立刻刷新touch bar的控件。