IMAVControlBar 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 IMAVControlBar class represents the control bar used in iChat Theater. However, the control bar does not appear unless you add controls. For example, you might add standard playback controls, like Forward and Previous buttons, if your client is a slideshow application. You set the target and actions for these controls before adding them to the control bar.

There is one IMAVControlBar object per client application that you obtain from the IMAVManager object using the controlBar method. You should not create instances of IMAVControlBar directly. Once you’ve obtained the control bar object, use the methods in this class to add and remove controls. Use subclasses of IMAVControl to add and configure the standard controls.

Tasks

Getting Controls

Adding and Removing Controls

Instance Methods

addControl:

Adds the specified control to the control bar.

- (void)addControl:(IMAVControl *)control

Parameters
control

The control to add.

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

controls

Returns all the controls on the control bar.

- (NSArray *)controls

Return Value

The controls on the control bar.

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

removeAllControls

Removes all the controls from the control bar.

- (void)removeAllControls

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

removeControl:

Removes the specified control from the control bar.

- (void)removeControl:(IMAVControl *)control

Parameters
control

The control to remove.

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


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-26)