• 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 drawing problems in unified toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSegmentedControl drawing problems in unified toolbar


  • Subject: Re: NSSegmentedControl drawing problems in unified toolbar
  • From: Seth Willits <email@hidden>
  • Date: Mon, 6 Feb 2006 12:30:40 -0800

On Feb 6, 2006, at 12:03 PM, Todd Yandell wrote:

Here's a custom subclass of NSSegmentedControl I made to get around that bug. It uses a private method, but it still works nicely. Feel free to do whatever you want with this code:

This will change the style to force it to be aqua, but this also blocks the control from switching selected segments.


I, personally, was looking for a solution to make it always appear in the unified/metal appearance. I overrided _isTextured in NSSegmentedCell and always returned true, which works, but there's no small size, and when you drag the control in a toolbar it still reverts to the Aqua appearance.

A custom control solution really is necessary it looks like.


-- Seth Willits

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSSegmentedControl drawing problems in unified toolbar
      • From: Todd Yandell <email@hidden>
References: 
 >Re: NSSegmentedControl drawing problems in unified toolbar (From: Keith Blount <email@hidden>)
 >Re: NSSegmentedControl drawing problems in unified toolbar (From: Todd Yandell <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl drawing problems in unified toolbar
  • Next by Date: [ANN] UKCrashReporter 0.1
  • Previous by thread: Re: NSSegmentedControl drawing problems in unified toolbar
  • Next by thread: Re: NSSegmentedControl drawing problems in unified toolbar
  • Index(es):
    • Date
    • Thread