<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsbuttoncell-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review symbols that are no longer in active development, and their recommended replacements.

## Overview

Although these symbols are available for use, Apple is no longer actively developing them, and may remove them in a future release. Apple recommends moving away from these symbols and using their indicated replacements instead. Check the individual symbol pages for the recommended replacements.

## Topics

### Deprecated methods

[`- (NSString *) alternateMnemonic;`](/documentation/AppKit/NSButtonCell/alternateMnemonic)

Returns the character in the alternate title that’s marked as the “keyboard mnemonic.”

[`- (NSUInteger) alternateMnemonicLocation;`](/documentation/AppKit/NSButtonCell/alternateMnemonicLocation)

Returns an unsigned integer indicating the character in the alternate title that’s marked as the “keyboard mnemonic.”

[`- (void) setAlternateMnemonicLocation:(NSUInteger) location;`](/documentation/AppKit/NSButtonCell/setAlternateMnemonicLocation:)

Sets the character in the alternate title that should be the “keyboard mnemonic.”

[`- (void) setAlternateTitleWithMnemonic:(NSString *) stringWithAmpersand;`](/documentation/AppKit/NSButtonCell/setAlternateTitleWithMnemonic:)

Sets the title the button displays when it’s in its alternate state to the given string with an embedded mnemonic.

[`- (void) setTitleWithMnemonic:(NSString *) stringWithAmpersand;`](/documentation/AppKit/NSButtonCell/setTitleWithMnemonic:)

Sets the title the button displays when it’s in its normal state to the given string with an embedded mnemonic.

[`func setKeyEquivalentFont(String, size: CGFloat)`](/documentation/AppKit/NSButtonCell/setKeyEquivalentFont(_:size:))

Sets by name and size of the font used to draw the key equivalent.

### Deprecated properties

[`var keyEquivalentFont: NSFont?`](/documentation/AppKit/NSButtonCell/keyEquivalentFont)

The font used to draw the button’s key equivalent.

[`var gradientType: NSButton.GradientType`](/documentation/AppKit/NSButtonCell/gradientType)

The gradient of the button’s border.

### Deprecated enumerations

[`enum GradientType`](/documentation/AppKit/NSButton/GradientType)

Specify the gradients used by the [`gradientType`](/documentation/AppKit/NSButtonCell/gradientType) property.



---

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)