Re: NSToolbar like IB's Palettes Toolbar
Re: NSToolbar like IB's Palettes Toolbar
- Subject: Re: NSToolbar like IB's Palettes Toolbar
- From: Scott Anguish <email@hidden>
- Date: Tue, 2 Mar 2004 02:08:56 -0500
ick.. having the requirement for pre 10.3 would mean rolling your own
toolbar views for each of the items in the toolbar (from the same
custom view class mind you) and then maintaining selection on your own
(I'd not bother to subclass NSToolbar to do this, but have a controller
play that role.
On Mar 2, 2004, at 12:11 AM, Mijobee wrote:
Yes, that's exactly the look and feel I'm looking for. I don't think
I can limit the compatibility to 10.3 however. How would something
like this best be implemented? When I referred to mutual exclusion I
was referring the behavior a group of radio buttons has, only one can
be selected at a time, and there is a visual cue as to which is
currently selected. Refer to the palattes window in Interface
Builder.
-
email@hidden
<xinjen/>
On Mar 1, 2004, at 4:11 AM, Andreas Mayer wrote:
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.
_______________________________________________
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.