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.