Next Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

NSValidatedUserInterfaceItem

Package
com.apple.cocoa.application
Companion guide

Overview

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

By conforming to this interface, your control can participate in this validation mechanism.

Tasks

Getting Information About a User Interface Item

Instance Methods

action

Returns the selector of the receiver’s action method.

public abstract NSSelector action()

tag

Returns the receiver’s tag integer.

public abstract int tag()



Next Page > Hide TOC


© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.