# Final Steps

> There is one more method from the class `Application` that we need to override. This method is called `#handlePopupSelectEvent`, and it causes changes in the popup list to change the label of the popup trigger, so that the item selected in the list will be displayed after the list is hidden. Click on the `Application` class in the left-hand pane, click on the plus sign next to "event handling" in the "Instance" tab on thr right, and then click on the "handlePopSelectEvent" method. Now change the last line from `^true` to `^false`.

> If you don't make this change then making a selection in the popup list, while it will update the mode, will not change the trigger label. Just as with the `#start` method, we need to move our version of this method to our package. After making the change and accepting the method, right-click on its name and selected "Change package..." and select our "ManHourCalculator.st" package.

> Believe it or not, we are ready to generate a `PRC` file that can be loaded onto your Palm (or the Palm emulator as you will see in the next section). After saving your project again (you have been saving your project frequently, haven't you?), select `System -> Generate code`. You will be presented with a standard Windows file dialog box. Navigate to your project directory and type `ManHourCalculator` into the File Name box, and click on the "Save" button. You should end up with a file called "ManHourCalculator.prc" in that directory, that is somewhere around 57 kilobytes in size.

> Now comes the real test: does it actually work? Odds are that even if you've been following this tutorial closely, you've still made a mistake somewhere. I did as I was writing the thing! Don't worry about it; experience will help you as you become more familiar with PST. So, let's try to run it!

<< Section 6: Writing Code: Instance Methods (Actions) | Section 8: Running Under POSE >>
Introduction

Copyright © 2000 Joey Gibson