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

# NSScrubberFlowLayoutDelegate

A protocol that a scrubber delegate can adopt to provide the size of an item.

```
protocol NSScrubberFlowLayoutDelegate : NSScrubberDelegate
```

## Overview

This protocol conforms to the [`NSScrubberDelegate`](/documentation/AppKit/NSScrubberDelegate) protocol. Create an object that conforms to [`NSScrubberFlowLayoutDelegate`](/documentation/AppKit/NSScrubberFlowLayoutDelegate) and assign it to the [`delegate`](/documentation/AppKit/NSScrubber/delegate) property of your scrubber object.

## Topics

### Controlling the item size

[`-  scrubber:layout:sizeForItemAtIndex:`](/documentation/AppKit/NSScrubberFlowLayoutDelegate/scrubber(_:layout:sizeForItemAt:))

Asks the delegate for the size of each item in a scrubber whose items are arranged in a flow layout.

## Relationships

### Inherits From

[`NSScrubberDelegate`](/documentation/AppKit/NSScrubberDelegate)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)