<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/activeCompressionOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSButton(py)activeCompressionOptions"
  },
  "title" : "activeCompressionOptions"
}
-->

# activeCompressionOptions

The compression options active for this button.

```
@NSCopying var activeCompressionOptions: NSUserInterfaceCompressionOptions { get }
```

## Discussion

Only compression options that have been applied and are actively being respected are returned. For more information about managing button sizes when space is restriced, see [`NSUserInterfaceCompressionOptions`](/documentation/AppKit/NSUserInterfaceCompressionOptions).

---

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)