Re: NSToolbar like IB's Palettes Toolbar
Re: NSToolbar like IB's Palettes Toolbar
- Subject: Re: NSToolbar like IB's Palettes Toolbar
- From: Andreas Mayer <email@hidden>
- Date: Mon, 1 Mar 2004 10:11:21 +0100
Am 01.03.2004 um 06:44 schrieb Mijobee:
Is there a better way to get
the same mutual exclusion + look and feel as the toolbar in the
palette's window
If you are talking about the toolbar items being selectable, there is a
new toolbar delegate method in 10.3:
-----------------
toolbarSelectableItemIdentifiers:
- (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
Returns an array of item identifiers that should indicate selection in
the specified toolbar. Toolbars that need to indicate item selection
should return an array containing the identifiers of the selectable
toolbar items.
If implemented, toolbar will display the currently selected item with a
visual highlight. Clicking on an item whose identifier is selectable
will automatically update the toolbars selected item identifier, when
possible.
Implementation of this method is optional.
Availability
Available in Mac OS X v10.3 and later.
See Also: setSelectedItemIdentifier:
-----------------
Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.