Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
- Subject: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
- From: Shane Stanley <email@hidden>
- Date: Thu, 18 Dec 2014 17:02:52 +1100
On 18 Dec 2014, at 4:40 pm, Jerry Krinock <email@hidden> wrote:
>
> I have spent several hours looking for a combination of NSSegementedControl of a given style and/or NSButton of a given style that will look like the buttons and what appear to be segmented controls in the toolbars of Xcode and Mail in Yosemite. So far, I have not found the answer. Is there any? Or are these custom controls?
You're not saying which version of Xcode. FWIW, I went through a lot of similar trial and error, and found that setting a segmented style of Automatic gives me a similar result to, say, the View menu in a Finder window. I call setSegmentStyle:NSSegmentStyleSeparated when it loads under 10.10, which gives the separated appearance. But in terms of how template images work, it's the same.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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