send ( receiver args... signature selector -- return... )
Cocoa bridge ยป Calling Objective C code

Prev:SUPER->
Next:super-send ( receiver args... signature selector -- return... )


Vocabulary
cocoa.messages

Inputs
receiveran alien
args...method arguments
signaturesignature
selectora string


Outputs
return...value returned by method, if any


Word description
Sends an Objective C message named by selector to receiver. The arguments must be on the stack in left-to-right order.

Errors
Throws an error if the receiver does not recognize the message, or if the arguments have inappropriate types.

Notes
This word uses a special fast code path if selector is a literal and the word containing the call to send is compiled.

See also
super-send, ->, SUPER->

Definition

: send ( receiver args... signature selector -- return... )
f (send) ; inline