Table of Contents Previous Section

Accessing Compiled Code From a Script

Application.wos, Main.wos, and Recipients.wos all send messages to compiled code. Accessing compiled code from a script is simply a matter of getting an object of the compiled class and sending it a message. For example, the Main.wos script includes these statements:

// Return a Person object by invoking Person's personWithDictionary: method
aPerson = [Person personWithDictionary:newPerson]; 

// Register aPerson by invoking RegistrationManager's registerPerson: method
results = [[WOApp manager] registerPerson:aPerson];

Table of Contents Next Section