| 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 |
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]]; |
Returns the time slider used in iChat Theater.
+ (IMAVSlider *)timeSlider
The time slider.
It is your responsibility to set the target-action for this slider. By default, the slider does nothing.
IMAVControl.hReturns the maximum value the slider can send to its target.
- (double)maxValue
The slider's maximum value in seconds.
IMAVControl.hReturns the minimum value the slider can send to its target.
- (double)minValue
The slider's minimum value in seconds.
IMAVControl.hSets the maximum value the slider can send to its target.
- (void)setMaxValue:(double)aDouble
The maximum value of the slider in seconds.
IMAVControl.hSets the minimum value the slider can send to its target.
- (void)setMinValue:(double)aDouble
The minimum value of the slider in seconds.
IMAVControl.hLast updated: 2009-05-26