Mac OS X Reference Library Apple Developer Connection spyglass button

IMAVSlider Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/InstantMessage.framework
Availability
Available in Mac OS X v10.6 and later.
Companion guide
Declared in
IMAVControl.h

Overview

The IMAVSlider class represents a slider control that you can add to the control bar used in iChat Theater, an instance of the IMAVControlBar class. The time slider can be used to scrub video or audio. It shows the elapsed and remaining time of a movie. Similar to other standard controls, you use a class method to create the slider. You should not create slider objects directly.

Use the timeSlider class method to get the slider used by iChat Theater. Use the setMinValue: and setMaxValue: methods to set the bounds of the slider. For example, set the minimum value to the start time of a movie and the maximum value to the end time of a movie. Use the inherited doubleValue method to get and the setDoubleValue: method to set the current location in seconds. Add the slider to the control bar using the addControl: method in the IMAVControlBar class.

For example, this code fragment configures a slider and adds it to the control bar:

[[IMAVSlider timeSlider] setMinValue:0.0];
[[IMAVSlider timeSlider] setMaxValue:3600.0];
[[[IMAVManager sharedAVManager] controlBar] addControl:[IMAVSlider timeSlider]];

Tasks

Getting the Slider

Changing the Value Limits

Class Methods

timeSlider

Returns the time slider used in iChat Theater.

+ (IMAVSlider *)timeSlider

Return Value

The time slider.

Discussion

It is your responsibility to set the target-action for this slider. By default, the slider does nothing.

Availability
Declared In
IMAVControl.h

Instance Methods

maxValue

Returns the maximum value the slider can send to its target.

- (double)maxValue

Return Value

The slider's maximum value in seconds.

Availability
  • Available in Mac OS X v10.6 and later.
See Also
Declared In
IMAVControl.h

minValue

Returns the minimum value the slider can send to its target.

- (double)minValue

Return Value

The slider's minimum value in seconds.

Availability
  • Available in Mac OS X v10.6 and later.
See Also
Declared In
IMAVControl.h

setMaxValue:

Sets the maximum value the slider can send to its target.

- (void)setMaxValue:(double)aDouble

Parameters
aDouble

The maximum value of the slider in seconds.

Availability
  • Available in Mac OS X v10.6 and later.
See Also
Declared In
IMAVControl.h

setMinValue:

Sets the minimum value the slider can send to its target.

- (void)setMinValue:(double)aDouble

Parameters
aDouble

The minimum value of the slider in seconds.

Availability
  • Available in Mac OS X v10.6 and later.
See Also
Declared In
IMAVControl.h


Last updated: 2009-05-26

Did this document help you? Yes It's good, but... Not helpful...