Table of Contents Previous Section
In WebScript, self is available in every method. It refers to the object ( the WOApplication object, the WOSession object, or the WOComponent object) associated with a script. When you send a message to self, you're telling the object associated with the script to perform a method that's implemented in the script. For example, suppose you have a script that implements the method giveMeARaise. From another method in the same script you could invoke giveMeARaise as follows:
[self giveMeARaise];
This tells the WOApplication, WOSession, or WOComponent object associated with the script to perform its giveMeARaise method.