MxIOletsApp:
Filter:
Mx/Classes (extension) | Mx

MxIOletsApp
ExtensionExtension

accesses a units inlets or outlets

Description

These object holds the inlets or outlets as returned by a unit:

or

A specific inlet or outlet can be then accessed by name:

Instance Methods

.unit

returns the unit this inlet or outlet set is for

Returns:

.at

access a specific iolet by name. eg. this is useful when the iolet name is "1" and cannot use the shorthand, or if your code creates the name dynamically

Arguments:

key

inlet or outlet name as defined in the driver file for the object. This is where the MxInlet or MxOutlet objects are created and named.

Returns:

an MxInletApp or MxOuletApp

.first

returns first iolet

Returns:

an MxInletApp or MxOuletApp

.out

usually returns the first outlet if there is one. This is a useful shorthand if you are working with objects that you dont know what name was used for the output, and you dont much care, you just want to connect the thing.

Returns:

an MxInletApp or MxOuletApp

>>

Connect this.out to that

Arguments:

inlet

An MxInletApp or MxQuery. If it is a query then it will attempt to connect to each item in the query.

Returns:

the MxInletApp or MxQuery for further chaining

.do

Iterate over the inlets

Arguments:

function

like collection.do

Returns:

this

.doesNotUnderstand

Used by the accessor shorthand to find the iolet by name

Arguments:

selector

The iolet name.

... args

In case the method call was a mistake, and the iolet is not found, this raises the error and displays the originally supplied args.

Returns:

the MxInletApp or MxOutletApp or raise an error

.disconnect

Disconnect all iolets

Returns:

this