• 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: vincent habchi <email@hidden>
  • Date: Thu, 28 Jan 2010 20:29:00 +0100

Le 28 janv. 2010 à 19:30, mmalc Crawford a écrit :

>
> On Jan 28, 2010, at 9:42 am, vincent habchi wrote:
>
>>> Check the "continuous" checkbox in IB (or set the object property of the same name) and your target will get called while the user drags, as soon as the position changes.
>>
>> 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.
>>
> A trivial test setting the limits of a slider's value to 0 and 1 and binding its 'value' to an object controller shows that the slider happily sends float values between 0 and 1...

Geez. I got a binary behavior when I tested it: 0 except at the rightmost position. I'll try again.
Thanks for the hint.
Vincent_______________________________________________

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>)
 >Re: NSSlider (From: mmalc Crawford <email@hidden>)

  • Prev by Date: NSSavePanel and file extensions
  • Next by Date: Re: Uncaught exceptions not terminating my app
  • Previous by thread: Re: NSSlider
  • Next by thread: Re: NSSlider
  • Index(es):
    • Date
    • Thread