Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grouping items in toolbar



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >grouping items in toolbar (From: Harmanpreet Bachal <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.