Previous | Next
WireHose Developers Guide

Database and prototype frameworks

The WireHose Application project template automatically includes references to OpenBase and FrontBase-specific frameworks. You'll need to add the frameworks for your database to the Application Server target so they'll get loaded at runtime.

All WireHose-specific entity attributes are defined by a handful of attribute prototypes. Using prototypes allows you to change the definition of every WireHose entity in a single place, no matter which model or framework they reside in (including entities defined in the WireHoseBase framework).

See Apple's Using EOModeler documentation for details about creating prototype definitions. It is a convention in WireHose applications to place the prototypes model in a framework, so that adding this framework to any application will cause WebObjects to use your prototype definitions instead of the ones defined in the WireHoseBase framework.

Note: To use a prototypes framework in a command-line tool, make sure there is entry in your classpath which points to the prototypes framework directory as there won't be a jar file to point to, e.g., "...:/Library/MyPrototypes.framework:..."

To add the database frameworks to Hello World's Application Server target:

  1. Make Application Server the active target.
  2. Expand the Frameworks group in the Files pane.
  3. Expand the group for your database.
  4. Check the boxes next to the frameworks for your database.

    If you're using OpenBase:


    If you're using FrontBase:

  5. Make HelloWorld the active target.

Previous | Next