• 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: NSSegmentedControl in a toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSegmentedControl in a toolbar


  • Subject: Re: NSSegmentedControl in a toolbar
  • From: Brian Postow <email@hidden>
  • Date: Wed, 5 May 2010 11:05:47 -0400

I've tried doing this myself. I don't think it can be done. at least not the way we want to do it.

If you look in the Preview.app package, you can find all of the images that it uses in the contents/resources folder. Notice that it has buttonLeft.tiff,  ButtonLeftAquar.tif, buttonLeftDark.tif, etc. similarly with center and right. If you look at any cocoa program YOU'VE written, it doesn't have separate tiff files for parts of buttons. This tells me that the way that preview does this is to manually create 3 images and treat them as buttons by swapping tiffs around manually.

In other words, Preview CHEATS! or perhaps it doesn't cheat, it does it the hard way, and there's no way to cheat, depending on how you look at it...

At that point I gave up... if you have more luck, I'd be really interested to hear about it...

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

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: NSSegmentedControl in a toolbar
      • From: Brian Postow <email@hidden>
References: 
 >Re: NSSegmentedControl in a toolbar (From: Flavio Donadio <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl in a toolbar
  • Next by Date: Avoid drawing in half pixel
  • Previous by thread: Re: NSSegmentedControl in a toolbar
  • Next by thread: Re: NSSegmentedControl in a toolbar
  • Index(es):
    • Date
    • Thread