Mac OS X Reference Library Apple Developer Connection spyglass button

IMAVButton 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
Related sample code

Overview

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]];

Tasks

Getting Buttons

Setting Properties

Class Methods

backwardButton

Returns the backward button used in iChat Theater to control video playback.

+ (IMAVButton *)backwardButton

Return Value

The backward button.

Discussion

It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button.

Availability
Related Sample Code
Declared In
IMAVControl.h

forwardButton

Returns the forward button used in iChat Theater to control video playback.

+ (IMAVButton *)forwardButton

Return Value

The forward button.

Discussion

It is your responsibility to set the target-action for this button. By default, clicking this button just changes the appearance of the button.

Availability
Related Sample Code
Declared In
IMAVControl.h

muteButton

Returns the mute button used in iChat Theater to control video playback.

+ (IMAVButton *)muteButton

Return Value

The mute button.

Discussion

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.

Availability
Declared In
IMAVControl.h

playPauseButton

Returns the play button used in iChat Theater to control video playback.

+ (IMAVButton *)playPauseButton

Return Value

The play button.

Discussion

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.

Availability
Declared In
IMAVControl.h

Instance Methods

setState:

Sets the state of the button.

- (void)setState:(NSInteger)value

Parameters
value

An integer value indicating the state of the button.

Discussion

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.

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

state

Returns the state of the button.

- (NSInteger)state

Return Value

An integer value indicating the state of the button.

Discussion

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.

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...