Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Constructing the Game

We have created the database, defined the model, tested it, and populated it; now we are ready to build the game around it.

For the first step, we are going to create a one-person version of the Crazy Eights game. That is one without the computer player.

Start by creating a new WebObjects Application project entitled CrazyEights.

Now copy into the project the CrazyEights model that we created earlier. The model is normally placed in the Resources group or folder of the project and it should be associated with the Application Server target.

Fetching Objects from the Database

First, let's define the main variables we need in the Main component. Add the following variables to Main.java:

 protected NSMutableArray deck; protected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book