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

NSToolbarItemValidation — Mac OS X 10.0

Synopsis

This informal protocol declares the method validateToolbarItem:, which allows targets of toolbar item actions to decide whether or not the toolbar item should be enabled. This method is similar in purpose and operation to the method validaeMenuItem:, which is found in the the NSMenuValidation protocol.

@interface NSObject (NSToolbarItemValidation)
                                  // Instance Methods
   - (BOOL)validateToolbarItem:(NSToolbarItem *)theItem;
@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