Instance Method

takeDoubleValueFrom(_:)

Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object.

Declaration

func takeDoubleValueFrom(_ sender: Any?)

Parameters

sender

The object from which to take the value. This object must respond to the doubleValue property.

Discussion

You can use this method to link action messages between controls. It permits one control or cell (sender) to affect the value of another control (the receiver) by invoking this method in an action message to the receiver. For example, a text field can be made the target of a slider. Whenever the slider is moved, it sends this message to the text field. The text field then obtains the slider’s value, turns it into a text string, and displays it.

See Also

Interacting with Other Controls

func takeFloatValueFrom(Any?)

Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object.

func takeIntValueFrom(Any?)

Sets the value of the receiver’s cell to an integer value obtained from the specified object.

func takeIntegerValueFrom(Any?)

Sets the value of the receiver’s cell to an NSInteger value obtained from the specified object.

func takeObjectValueFrom(Any?)

Sets the value of the receiver’s cell to the object value obtained from the specified object.

func takeStringValueFrom(Any?)

Sets the value of the receiver’s cell to the string value obtained from the specified object.