Using WebScript
WebScript is the WebObjects scripting language. It is simple and easy to learn. You use it to write the logic of application, session, and component objects in WebObjects. This chapter describes WebScript and how it fits into the WebObjects application.
Table of Contents
- The WebScript Language
- Declaring Variables
- The id Data Type
- Making Assignments
- Messaging in WebScript
- Creating Objects
- Writing Your Own Methods
- What is self?
- Categories
- Scripted Classes
- "Modern" WebScript Syntax
- Declaring Variables
- Using WebScript in a WebObjects Application
- The Role of Scripts in a WebObjects Application
- Visitors Example
- The Duration of a Component
- Variables and Scope
- Variables and Scope: a Summary
- Accessing and Sharing Variables
- The Role of Scripts in a WebObjects Application
- WebScript Language Summary
- A Note to Objective-C Developers
Related Topics
- Debugging
- Object-Oriented Concepts: a Quick Overview
- What Are the Origins of WebScript?