Create libraries.rev Stack File

Now you will create a libraries.rev stack file. This stack file is a good place to store libraries that your application uses. The libraries can be substacks of the libraries.rev mainstack.

Create New Stack

Create a new stack by choosing File > New Mainstack from the menu.

Open the Stack Inspector

Open the stack inspector by choosing Object > Stack Inspector from the menu.

Name the Stack

Name the stack libraries.

Save Stack as Stack File

Save the stack by choosing File > Save As... from the menu.

Name the stack file libraries.rev (1) and save it in the ./components folder (2).

Tell the GLX Application Framework About New Library Stack File

Open the GLX Application Framework plugin by choosing Development > Plugins > glxApplicationProperties from the menu.

Add Stack File

Switch to the Stacks & Externals tab (1) and click the Add Stack button (2).

Select the libraries.rev Stack File

Select the libraries.rev stack file you just created and click the Open button.

The stack file file will be added to the list of stacks in your application. This means the GLX Application Framework will load the stack file into memory when the application is launched.

Tell the Framework The Stack File is a Library

Now scroll the list of stack files to the right until you see the Type column (1). Change the type of the libraries.rev stack file to library (2). Stack files that are designated as libraries are treated differently by the framework. The mainstack of the stack file and any substacks will be put in use ('start using stack STACK_NAME') so that all handlers in the stack scripts will be available to your application.

Save Your Work

Click the Save Settings button in the top-left corner to save the changes you made to disk. This action just saves the application stack to disk.

0 Comments

Add your comment

E-Mail me when someone replies to this comment