• 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: How to set a parameter value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider: How to set a parameter value?


  • Subject: Re: NSSlider: How to set a parameter value?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 30 Dec 2008 01:00:28 +1100


On 30 Dec 2008, at 12:55 am, Marcelo Cicconet wrote:

But how can I move the playback position to another point of the sound
via a slider?


In your controller object, implement an action method like:

- (IBAction)	soundTimeAction:(id) sender
{
	[mySound setCurrentTime:[sender floatValue] * [mySound duration]];
}

then wire this up as the slider's action using IB.

hth,

Graham


_______________________________________________

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: How to set a parameter value? (From: "Marcelo Cicconet" <email@hidden>)
 >Re: NSSlider: How to set a parameter value? (From: Graham Cox <email@hidden>)
 >Re: NSSlider: How to set a parameter value? (From: "Marcelo Cicconet" <email@hidden>)

  • Prev by Date: Re: NSSlider: How to set a parameter value?
  • Next by Date: Google Maps Class / Library
  • Previous by thread: Re: NSSlider: How to set a parameter value?
  • Next by thread: NSForm
  • Index(es):
    • Date
    • Thread