O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSValidatedUserInterfaceItem — Mac OS X 10.0

Synopsis

Custom interface control objects may adopt this protocol to partake in the Application Kit’s automated validation mechanism. User interface validation works by having user interface items, such as buttons or text fields, query the targets of their action about whether or not they should be enabled. This protocol is closely related to the NSUserInterfaceItemValidations protocol, which declares the method validateUserInterfaceItem: for target objects to implement.

@protocol NSValidatedUserInterfaceItem
                                  // Instance Methods
   - (SEL)action;
   - (int)tag;
@end

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required