<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsmenu-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

[`- (NSMenu *) attachedMenu;`](/documentation/AppKit/NSMenu/attachedMenu)

Returns the menu currently attached to the menu.

[`- (BOOL) isAttached;`](/documentation/AppKit/NSMenu/isAttached)

Returns a Boolean value that indicates whether the menu is currently attached to another menu.

[`- (NSPoint) locationForSubmenu:(NSMenu *) submenu;`](/documentation/AppKit/NSMenu/locationForSubmenu:)

Returns the location in screen coordinates where the given submenu is displayed when opened as a submenu of the menu.

[`- (void) sizeToFit;`](/documentation/AppKit/NSMenu/sizeToFit)

Resizes the menu to exactly fit its items.

[`func helpRequested(with: NSEvent)`](/documentation/AppKit/NSMenu/helpRequested(with:))

Overridden by subclasses to implement specialized context-sensitive help behavior.

[`class func menuZone() -> NSZone!`](/documentation/AppKit/NSMenu/menuZone())

Returns the zone from which `NSMenu` objects should be allocated.

[`+ (void) setMenuZone:(NSZone *) zone;`](/documentation/AppKit/NSMenu/setMenuZone:)

Sets the zone from which `NSMenu` objects should be allocated

[`- (id) contextMenuRepresentation;`](/documentation/AppKit/NSMenu/contextMenuRepresentation)

Deprecated.

[`- (void) setContextMenuRepresentation:(id) menuRep;`](/documentation/AppKit/NSMenu/setContextMenuRepresentation:)

Deprecated.

[`- (id) tearOffMenuRepresentation;`](/documentation/AppKit/NSMenu/tearOffMenuRepresentation)

Deprecated.

[`- (void) setTearOffMenuRepresentation:(id) menuRep;`](/documentation/AppKit/NSMenu/setTearOffMenuRepresentation:)

Deprecated.

[`- (void) setMenuRepresentation:(id) menuRep;`](/documentation/AppKit/NSMenu/setMenuRepresentation:)

Deprecated.

[`- (id) menuRepresentation;`](/documentation/AppKit/NSMenu/menuRepresentation)

Deprecated.

### Deprecated properties

[`var isTornOff: Bool`](/documentation/AppKit/NSMenu/isTornOff)

Indicates whether the menu is offscreen or attached to another menu (or if it’s the main menu).

[`var menuChangedMessagesEnabled: Bool`](/documentation/AppKit/NSMenu/menuChangedMessagesEnabled)

Indicates whether messages are sent to the application’s windows each time the menu changes.



---

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)