| 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 |
| Related sample code |
The IMAVButton class represents a type of control that you can add to the control bar used in iChat Theater, an instance of the IMAVControlBar class. Use the class methods defined in this class to add standard buttons to the control bar. You should not create instances of this class directly.
For example, this code fragment sets the target-action of the Forward button and adds it to the control bar:
[[IMAVButton forwardButton] setTarget:self]; |
[[IMAVButton forwardButton] setAction:@selector(forwardButtonAction:)]; |
[[[IMAVManager sharedAVManager] controlBar] addControl:[IMAVButton forwardButton]]; |
Returns the backward button used in iChat Theater to control video playback.
+ (IMAVButton *)backwardButton
The backward button.
It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button.
IMAVControl.hReturns the forward button used in iChat Theater to control video playback.
+ (IMAVButton *)forwardButton
The forward button.
It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button.
IMAVControl.hReturns the mute button used in iChat Theater to control video playback.
+ (IMAVButton *)muteButton
The mute button.
It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button. If the state of the button is 1, you should mute the audio source; otherwise, you should pause it.
IMAVControl.hReturns the play button used in iChat Theater to control video playback.
+ (IMAVButton *)playPauseButton
The play button.
It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button. If the state of the button is 1, you should play the video source; otherwise, you should pause it.
IMAVControl.hSets the state of the button.
- (void)setState:(NSInteger)value
An integer value indicating the state of the button.
The state depends on the type of button. For example, if the state of the button returned by the playPauseButton method is 1, the video source is playing; otherwise it is paused.
IMAVControl.hReturns the state of the button.
- (NSInteger)state
An integer value indicating the state of the button.
The state depends on the type of button. For example, if the state of the button returned by the playPauseButton method is 1, the video source is playing; otherwise it is paused.
IMAVControl.hLast updated: 2009-05-26