RE: Equalizing Width of all Toolbar Items
RE: Equalizing Width of all Toolbar Items
- Subject: RE: Equalizing Width of all Toolbar Items
- From: "Chen Wang" <email@hidden>
- Date: Wed, 1 Jun 2005 17:45:02 -0400
- Thread-topic: Equalizing Width of all Toolbar Items
Thank you all for the answers!
Joar, the NSImageView works well. By using setMinSize and NSScaleNone,
the toolbar looks much better.
Chen
-----Original Message-----
From: j o a r [mailto:email@hidden]
Sent: Wednesday, June 01, 2005 3:51 PM
To: Chen Wang
Cc: email@hidden
Subject: Re: Equalizing Width of all Toolbar Items
On 1 jun 2005, at 22.37, Chen Wang wrote:
> Is there any way in Cocoa to assign a fixed width to NSToolbarItem (no
> matter how long its label text is), so that all items could be equally
> distributed in a toolbar?
If you use a custom view (NSImageView in this case probably), instead
of a plain image type toolbar item, you can set the width you want.
j o a r
Confidentiality Notice: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
_______________________________________________
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