Re: NSSlider: How to set a parameter value?
Re: NSSlider: How to set a parameter value?
- Subject: Re: NSSlider: How to set a parameter value?
- From: "Marcelo Cicconet" <email@hidden>
- Date: Mon, 29 Dec 2008 05:55:58 -0800
I'd like to control the playback position of a sound managed by the
NSSound class. I just know how to update the playback position based
on the sound current time:
[playbackSlider setFloatValue:[sound currentTime]/[sound duration]];
But how can I move the playback position to another point of the sound
via a slider?
Thanks.
Marcelo.
On Mon, Dec 29, 2008 at 2:47 AM, Graham Cox <email@hidden> wrote:
>
> On 29 Dec 2008, at 9:31 pm, Marcelo Cicconet wrote:
>
>> Hi.How do I use a slider to set a parameter value?
>
>
> What have you tried?
>
> What do *you* mean by 'parameter value'?
>
> Hooking up a slider to another object - usually a controller - you can use target/action and bindings, to name the most common.
>
> --Graham
--
KEEP WORKING
_______________________________________________
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