• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
      • From: Jerry Krinock <email@hidden>
References: 
 >Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Next by Date: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Previous by thread: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Next by thread: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Index(es):
    • Date
    • Thread