Deprecated NSMenu Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X v10.2
setMenuZone:
Sets the zone from which NSMenu objects should be allocated (Deprecated in OS X v10.2.)
Parameters
- zone
The memory zone to set.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hattachedMenu
Returns the menu currently attached to the receiver. (Deprecated in OS X v10.2.)
Return Value
The menu currently attached to the receiver or nil if there’s no such object.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
See Also
Declared In
NSMenu.hcontextMenuRepresentation
Deprecated. (Deprecated in OS X v10.2. OS X does not use menu representations to draw menus.)
Return Value
nil.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hisAttached
Returns a Boolean value that indicates whether the receiver is currently attached to another menu. (Deprecated in OS X v10.2.)
Return Value
YES if the receiver is currently attached to another menu, otherwise NO.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
See Also
Declared In
NSMenu.hlocationForSubmenu:
Returns the location in screen coordinates where the given submenu is displayed when opened as a submenu of the receiver. (Deprecated in OS X v10.2.)
Parameters
- aSubmenu
A menu object that is a submenu of the receiver.
Return Value
An NSPoint structure describing the location or (0.0, 0.0) if the submenu does not exist in the receiver.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hmenuRepresentation
Deprecated. (Deprecated in OS X v10.2. OS X does not use menu representations to draw menus.)
Return Value
nil.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hsetContextMenuRepresentation:
Deprecated. (Deprecated in OS X v10.2. OS X does not use menu representations to draw menus.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hsetMenuRepresentation:
Deprecated. (Deprecated in OS X v10.2. OS X does not use menu representations to draw menus.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.hsetTearOffMenuRepresentation:
Deprecated. (Deprecated in OS X v10.2. OS X does not use menu representations to draw menus.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.2.
Declared In
NSMenu.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-03-30)