beautypg.com

Apple WebObjects 3.5 User Manual

Page 49

background image

Keeping Track of Multiple Guests

49

Note that there is one method already defined:

Application

, which is

the constructor for the application object. The first line calls the
constructor for Application’s superclass (which is the class
WebApplication). The second line prints a message, which you see
in the Launch panel when you launch your application.

2. After the call to

super

, enter this code:

allGuests = new MutableVector();

This statement initializes

allGuests

to be a new object of class

MutableVector. This class is the Java equivalent of the Objective-C
class NSMutableArray, which provides an interface that allows you to
add, change and delete objects from an array.

You add this line.

You add this line.

You add these
two methods.