Re: The Toolbar Widget
Re: The Toolbar Widget
- Subject: Re: The Toolbar Widget
- From: Shaun Wexler <email@hidden>
- Date: Sat, 27 Sep 2003 23:20:41 -0700
On Sep 27, 2003, at 9:15 PM, The Amazing Llama wrote:
On Friday, September 26, 2003, at 10:06 PM, Scott Anguish wrote:
One possible situation where the small mode might not work, is the
case of a custom view that simply can't be scaled usefully to a 24
pixel high format.
And this is exactly what I've got, and I'm trying to disable the
size-changing features of the widget, not the show/hide.
Subclass NSToolbar and override -sideMode and -setSizeMode: to enforce
NSToolbarSizeModeRegular.
If you can't get the behavior you want, in your subclass you can also
override the NSToolbarView methods in charge of resizing the view
itself:
@interface NSToolbarView (FixedVerticalSizeHacks)
- (void)_sizeToFit:(BOOL)shouldSize;
- (void)_sizeVerticalyToFit;
- (void)_sizeHorizontallyToFit;
- (void)setFrameSize:(NSSize)size;
- (void)_noteToolbarSizeModeChanged;
@end
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.