Re: Best way to make Finder/Mail style toolbars?
Re: Best way to make Finder/Mail style toolbars?
- Subject: Re: Best way to make Finder/Mail style toolbars?
- From: Lee Ann Rucker <email@hidden>
- Date: Sat, 08 Mar 2014 20:35:22 -0800 (PST)
- Thread-topic: Best way to make Finder/Mail style toolbars?
Subclass NSToolbarItem to validate the custom view.
----- Original Message -----
From: "Jens Alfke" <email@hidden>
To: "Cocoa Dev List" <email@hidden>
Sent: Saturday, March 8, 2014 8:08:36 PM
Subject: Best way to make Finder/Mail style toolbars?
I want my Mac app's toolbar to look like the ones in the Finder and Mail, with each item drawn as a framed button. So far the only way I’ve found to do this is to give each NSToolbarItem a custom view that’s an NSSegmentedControl with one segment. This is awkward and kind of annoying since the items no longer auto-validate.
Is there some setting I’ve overlooked that will give the toolbar this visual style without my having to wrap all the items? Or is this really the way to do it?
—Jens
_______________________________________________
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
_______________________________________________
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