NSMenuItem Bindings
Availability Bindings
enabled
A multiple-value binding that determines if the NSMenuItem is enabled in the user interface.
When enabled is bound, a new binding, enabled2, is exposed and can be bound. Binding to enabled2 causes enabled3 to be exposed, and so on.
The NSMenuItem is enabled if a logical AND operation on all the enabled bindings results in a Boolean value of YES.
Parameters Bindings
image
An NSImage that specifies the image displayed by the NSMenuItem.
mixedStateImage
An NSImage that is displayed when the value of the NSMenuItem is NSMixedState.
The default image is an en dash.
offStateImage
An NSImage that is displayed when the value of the NSMenuItem is NSOffState.
The default is an empty image.
onStateImage
An NSImage that is displayed when the value of the NSMenuItem is NSOnStatem.
The default image is a checkmark.
title
An NSString value that is displayed as the label of the NSMenuItem.
Value Bindings
value
An integer value that specifies the state of the NSMenuItem.
If value evaluates to 0 (NSOffState) or nil, the off state image is displayed; the default is an empty image. If value evaluates to 1 (NSOnState), the on state image is displayed; the default is a checkmark. If value evaluates to -1 (NSMixedState), the mixed state image is displayed, the default is an en dash.
Copyright © 2004, 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15