Squeak Class Documentation category index | class index  
 
MessageSend
  category: Kernel-Objects
  superclass: Object
  subclasses: MorphicAlarm MethodCall

Instances of MessageSend encapsulate message sends to objects. Arguments can be either predefined or supplied when the message send is performed. MessageSends are used to implement the #when:send:to: event system.

Use #value to perform a message send with its predefined arguments and #valueWithArguments: if additonal arguments have to supplied.

Structure:
receiver Object -- object receiving the message send
selector Symbol -- message selector
arguments Array -- bound arguments

instance methods
  accessing
  arguments
arguments:
receiver
receiver:
selector
selector:

  comparing
  =
hash

  evaluating
  value
valueWithArguments:

  printing
  printOn:

  tiles
  asTilesIn:
asTilesIn:globalNames:
stringFor:

class methods
  instance creation
  receiver:selector:
receiver:selector:argument:
receiver:selector:arguments:

instance methods
  accessing top  
 

arguments


 

arguments:


 

receiver


 

receiver:


 

selector


 

selector:


  comparing top  
 

=

Answer whether the receiver and the argument represent the same
object. If = is redefined in any subclass, consider also redefining the
message hash.


 

hash

Answer a SmallInteger whose value is related to the receiver's identity.
May be overridden, and should be overridden in any classes that define =


  evaluating top  
 

value


 

valueWithArguments:


  printing top  
 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


  tiles top  
 

asTilesIn:

Construct SyntaxMorph tiles for me.


 

asTilesIn:globalNames:

Construct SyntaxMorph tiles for me. If makeSelfGlobal is true, name the receiver and use that name, else use 'self'. (Note that this smashes 'self' into the receiver, regardless of what it was.)


 

stringFor:

Return a string suitable for compiling. Literal or reference from global ref dictionary. self is always named via the ref dictionary.


class methods
  instance creation top  
 

receiver:selector:


 

receiver:selector:argument:


 

receiver:selector:arguments: