<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubberLayoutAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrubberLayoutAttributes"
  },
  "title" : "NSScrubberLayoutAttributes"
}
-->

# NSScrubberLayoutAttributes

The layout of a scrubber item.

```
class NSScrubberLayoutAttributes
```

## Overview

A layout attributes object is the model for the layout of a single item in a scrubber control.

If you require model attributes in addition to those provided by this class, create a subclass and add appropriate attributes. Subclasses must implement <doc://com.apple.documentation/documentation/ObjectiveC/NSObjectProtocol/isEqual(_:)>, <doc://com.apple.documentation/documentation/ObjectiveC/NSObjectProtocol/hash> and the <doc://com.apple.documentation/documentation/Foundation/NSCopying> protocol.

## Topics

### Creating layout attributes

[`init(forItemAt:)`](/documentation/AppKit/NSScrubberLayoutAttributes/init(forItemAt:))

Creates a new layout attributes object for the specified scrubber item index.

### Controlling the layout

[`alpha`](/documentation/AppKit/NSScrubberLayoutAttributes/alpha)

The item’s alpha value.

[`frame`](/documentation/AppKit/NSScrubberLayoutAttributes/frame)

The frame of the scrubber item.

[`itemIndex`](/documentation/AppKit/NSScrubberLayoutAttributes/itemIndex)

The index of the scrubber item that is represented by the item’s layout attributes.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)