Re: grouping items in toolbar
Re: grouping items in toolbar
- Subject: Re: grouping items in toolbar
- From: Milton Sagen <email@hidden>
- Date: Fri, 12 Aug 2005 10:27:44 -0700
Why not just use NSSegmentedControl. I've been assuming that is what
the new Mail.app is using. I wonder if there is some HIG on grouping
buttons together like this.
Milt
On Aug 12, 2005, at 08:37, Justin Anderson wrote:
To group NSToolbarItems, they need to be grouped into a custom view
before hand and provided as a single NSToolbarItem. If you look in
how Mail.app is done in Tiger, it has both grouped and separated
versions of its buttons to choose from.
If that's not what you had in mind, or if after doing the above you
still find yourself overflowing outside of the window, you can
perform dynamic toolbar item triage with NSToolbarItem's -
setVisibilityPriority:. With it, you can tell your toolbar which
items will overflow first, regardless of what order the items are
sorted into. Visibility priorities are new to Tiger however, so
doing so would at worst break compatibility with previous versions
of OS X and at best result in differing user experiences.
NSToolbarItem's -setVisibilityPriority:
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSToolbarItem.html#//apple_ref/
doc/uid/20000682-BCIHJDJH>.
I hope that helps,
Justin
On Aug 12, 2005, at 2:22 AM, Harmanpreet Bachal wrote:
Hi All,
I have a toolbar and on placing the items in it at runtime
(NSToolbar) the toolbar items are exceeding the length of the
window and the items appear after clicking on the extending arrow.
It is possible to group similar tools so that they appear in a
combo box or can u please suggest something!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden