Subclass NSToolbarItem to validate the custom view. ----- Original Message ----- From: "Jens Alfke" <j...@mooseyard.com> To: "Cocoa Dev List" <cocoa-dev@lists.apple.com> 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 (Cocoa-dev@lists.apple.com) 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: https://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=fUBErHtEGOHn%2FjaxkKFOqvjZ3s%2FzenWxSehKnGMQob4%3D%0A&s=61684e7aae3fd69f230f47ea8a1c22c9b00825799e50eae8e3c502bec315b652 This email sent to lruc...@vmware.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com