Toggling Toolbar Sizes
Toggling Toolbar Sizes
- Subject: Toggling Toolbar Sizes
- From: Scott Thompson <email@hidden>
- Date: Wed, 19 May 2004 10:37:50 -0500
In applications like XCode, or mail.app, if you command-click on the
toolbar button (the one on the right side of the menu bar) the toolbar
will toggle between a number of different states that include large
icons, small icons, text only , icons only etc...
For my application, however, if I command-click on the toolbar button,
The only thing that actually changes is the size of the text labels.
I can change the state of my toolbar manually using the setSizeMode:
and setDisplayMode: methods of Toolbar and if necessary I can implement
my own routines for flipping the toolbar states using those primitives,
but I was curious to know if there is a more direct route to accomplish
the same goal... Something like the imaginary methods
"setToolbarAllowedSizeModes:" and "setToolbarAllowedDisplayModes:"
What is the easiest way to enable the functionality that is used by the
Apple applications? Can I set up the toolbar to allow certain
combinations of display and size modes somehow, or do I need to respond
to a action sent by the window's toolbar button and call the
setSizeMode and setDisplayMode routines myself?
Scott
_______________________________________________
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.