• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: grouping items in toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grouping items in toolbar


  • Subject: Re: grouping items in toolbar
  • From: Justin Anderson <email@hidden>
  • Date: Fri, 12 Aug 2005 11:37:53 -0400

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


  • Follow-Ups:
    • Re: grouping items in toolbar
      • From: Milton Sagen <email@hidden>
References: 
 >grouping items in toolbar (From: Harmanpreet Bachal <email@hidden>)

  • Prev by Date: Re: NSTable View Selected Cell question
  • Next by Date: Re: NSTable View Selected Cell question
  • Previous by thread: grouping items in toolbar
  • Next by thread: Re: grouping items in toolbar
  • Index(es):
    • Date
    • Thread