• 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: NSSlider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider


  • Subject: Re: NSSlider
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 28 Jan 2010 10:36:40 -0800

On Jan 28, 2010, at 9:42 AM, vincent habchi <email@hidden> wrote:

Do not forget there are some pitfalls. For example, I bound a slider to the alpha value of a CALayer. I had to subclass it, because there is no way I found (except a custom NSValueTransformer) to get the slider return a float value from [0,1] instead of integers.

Isn't that the perfect case for a value transformer? Why would you instead subclass NSSlider when a much simpler infrastructure already exists?


--Kyle Sluder
_______________________________________________

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


References: 
 >NSSlider (From: David Blanton <email@hidden>)
 >Re: NSSlider (From: Jens Alfke <email@hidden>)
 >Re: NSSlider (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Forcing menu update in 10.4?
  • Next by Date: Re: how can i do the equivalent of "new email with selection" service?
  • Previous by thread: Re: NSSlider
  • Next by thread: Re: NSSlider
  • Index(es):
    • Date
    • Thread