< Previous PageNext Page > Hide TOC

Subclassing NSToolbarItem

To provide enabling behavior or to modify click-through behavior on a view item, you must override validate and may want to override isEnabled and setEnabled:.

To enable multiple copies of the item in the toolbar, you must override allowsDuplicatesInToolbar to return YES.

Your subclass must conform to the NSCopying protocol.



< Previous PageNext Page > Hide TOC


© 2002, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)


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.