Capsule-Style Toolbar Controls
Capsule-Style Toolbar Controls
- Subject: Capsule-Style Toolbar Controls
- From: Stefan Hafeneger <email@hidden>
- Date: Wed, 16 Apr 2008 22:27:04 +0200
Hi,
Has anyone tried to use the Capsule-Style Toolbar Controls in an app
so that it looks and behaves like Mail or Preview? When I add them to
my toolbar it looks like Mail. But if I compare them side by side the
ones in Mail and Preview there is a 2 pixel difference of the
baseline. And I think it looks better in Mail/Preview. When I add a
multi-segment control I only have one Label (not two or more). In Mail
and Preview it looks like there are as many labels as segments. You
can "fake" this by adding blanks. But there is one more point: In Mail
and Preview the size of the control is adjusted (I think depending on
the size of the label(s)). Well, in the nib files from Mail and
Preview there are no toolbars, so Apple builds them via code. So the
question is: If I code them as well, is it possible to do the same
that Apple does in Mail and Preview via NSSegmentedCell or is this all
done by hand?
With best wishes, Stefan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden