Combee on Palm OS

Monday, 29 November 2004  8:00 AM

Palm OS Developer Suite 1.1 has now been posted for downloading, and I'm going to be highlighting some of the new features in a series of articles this week.

First on the list is a new feature of the Palm OS Resource Editor.  As part of the changes we made to support Palm OS Cobalt 6.1, we added the ability for the resource editor to output both the XRD file and a C header file with the constants for the XRD file defined.  To use this, follow these steps:

  1. Open your XRD file in the resource editor by double clicking on it from the PODS IDE.
  2. In the resource editor, click on the XRD filename in the Files pane.  You should be able to edit the properties for the file; if not, click on some other item, then click back on the filename.
  3. In the Properties, turn on the "Generate Header" checkbox, and fill in a name for your header.  Be sure to include the ".h" extension.
  4. In your resources, fill in the Comment field to specify the text that is used to generate the IDs.  If the comment is empty, the resource editor will append the ID number to the generated ID to guarantee uniqueness.
  5. When you save your XRD file, a new copy of the header will also be saved to the same folder as the XRD file.

The identifiers that are generated by the resource editor follow the pattern k<comment><type> or k<type><id> depending on the value of the comment field.