<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/ButtonType/momentaryChange",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSButtonType@NSButtonTypeMomentaryChange"
  },
  "title" : "NSButton.ButtonType.momentaryChange"
}
-->

# NSButton.ButtonType.momentaryChange

A button that displays its alternate content when clicked and returns to its normal content when the user releases it.

```
case momentaryChange
```

## Discussion

When the value of [`isHighlighted`](/documentation/AppKit/NSControl/isHighlighted) is <doc://com.apple.documentation/documentation/Swift/true>, the button displays its alternate content (for example, its [`alternateImage`](/documentation/AppKit/NSButton/alternateImage) or [`alternateTitle`](/documentation/AppKit/NSButton/alternateTitle)). If the button has no alternate content to display, it may instead draw its normal content using an illuminated effect. When [`isHighlighted`](/documentation/AppKit/NSControl/isHighlighted) is <doc://com.apple.documentation/documentation/Swift/false>, the button displays its normal content (for example, its [`image`](/documentation/AppKit/NSButton/image) or [`title`](/documentation/AppKit/NSButton/title)).

This option corresponds to the Momentary Change type in Interface Builder’s Attributes inspector.

---

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)