Mac Developer Library

Developer

AppKit Framework Reference NSValidatedUserInterfaceItem Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSValidatedUserInterfaceItem

The NSValidatedUserInterfaceItem protocol works with the NSUserInterfaceValidations protocol to enable or disable a control automatically, depending on whether any responder in the responder chain can handle the control’s action method. The NSMenuItem and NSToolbarItem classes implement this protocol. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import AppKit @import AppKit;

Availability


Available in OS X v10.0 and later.
  • action() action Required

    Returns the selector of the receiver’s action method. (required)

    Declaration

    Swift

    func action() -> Selector

    Objective-C

    - (SEL)action

    Return Value

    The selector of the receiver's action method.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.

  • tag() tag Required

    Returns the receiver’s tag integer. (required)

    Declaration

    Swift

    func tag() -> Int

    Objective-C

    - (NSInteger)tag

    Return Value

    The receiver's tag.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.0 and later.