Mac OS X Reference Library Apple Developer Connection spyglass button

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.



Last updated: 2009-02-04

Did this document help you? Yes It's good, but... Not helpful...