Mac OS X Reference Library Apple Developer Connection spyglass button

IMAVControl 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 IMAVControl class is an abstract superclass for controls that you add to the iChat Theater control bar, an instance of the IMAVControlBar class. Similar to the NSControl class in the Application Kit framework, this class provide a common interface for setting a control’s target, action, and value. You can also enable or disable a control. Use the various IMAVControl subclasses to create control objects.

Tasks

Setting the Target and Action

Enabling and Disabling

Getting and Setting the Value

Getting and Setting the Tag

Instance Methods

action

Returns the action-message selector associated with the control.

- (SEL)action

Return Value

The action message that is sent to the target.

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

doubleValue

Returns the receiver’s value as a double-precision floating-point number.

- (double)doubleValue

Return Value

The value interpreted as a double-precision floating-point number.

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

floatValue

Returns the receiver’s value as a single-precision floating-point number.

- (float)floatValue

Return Value

The value interpreted as a single-precision floating-point number.

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

integerValue

Returns the receiver’s value as an NSInteger value.

- (NSInteger)integerValue

Return Value

The value interpreted as an NSInteger value.

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

intValue

Returns the receiver’s value as an integer.

- (int)intValue

Return Value

The value interpreted as an integer.

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

isEnabled

Returns whether the receiver reacts to mouse events.

- (BOOL)isEnabled

Return Value

YES if the receiver responds to mouse events; otherwise, NO.

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

setAction:

Sets the receiver's action method to the specified selector.

- (void)setAction:(SEL)aSelector

Parameters
aSelector

The action message to send to the target. Specify NULL to prevent action messages from being sent to the receiver's target.

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

setDoubleValue:

Sets the receiver’s value using a double-precision floating-point number.

- (void)setDoubleValue:(double)aDouble

Parameters
aDouble

The value interpreted as a double-precision floating-point number.

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

setEnabled:

Sets whether the receiver (and its cell) reacts to mouse events.

- (void)setEnabled:(BOOL)flag

Parameters
flag

YES if you want the receiver to react to mouse events; otherwise, NO.

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

setFloatValue:

Sets the receiver’s value using a single-precision floating-point number.

- (void)setFloatValue:(float)aFloat

Parameters
aFloat

The value interpreted as a single-precision floating-point number.

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

setIntegerValue:

Sets the receiver’s value using an NSInteger value.

- (void)setIntegerValue:(NSInteger)anInteger

Parameters
anInteger

The value interpreted as an NSInteger value.

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

setIntValue:

Sets the receiver’s value using an integer.

- (void)setIntValue:(int)anInt

Parameters
anInt

The value interpreted as an integer.

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

setTag:

Sets the tag of the receiver.

- (void)setTag:(NSInteger)anInt

Parameters
anInt

The new tag.

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

setTarget:

Sets the target object to receive action messages.

- (void)setTarget:(id)anObject

Parameters
anObject

The new target object to associate with the receiver, or nil to remove the current target.

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

tag

Returns the tag identifying the receiver.

- (NSInteger)tag

Return Value

The tag of this control object.

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

target

Returns the receiver’s target object.

- (id)target

Return Value

The object that receives the action message.

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