Specifications

Developer Technical Support May 1992
Apple IIGS
#76: Miscellaneous Resource Formats 5 of 8
Note: For compatibility with the Finder, keep the name field identical across different
versions of the same application, and make sure the version field increases on
each later version released to your customers. The moreInfo field is not critical; if
it changes between versions, it’s no big deal.
Comment Resource (Type: $802A, rComment)
Files may include a comment resource with ID=1 for display by programs such as the Finder. All
rComment resource IDs other than 1 are reserved for future definition. The following describes
the comment resource format:
text (+000) Bytes The comment. This is unformatted, 8-bit text suitable
for displaying by a desktop program. No length limit
is imposed by this resource format, although a
practical limit of a few hundred characters is
recommended.
The resource compiler template follows:
#define rComment $802A
/*---------------------- rComment --------------------*/
type rComment {
string;
};
Tagged Strings Resource (Type: $802E, rTaggedStrings)
A tagged strings resource lists pairs of Word values and Pascal strings.
count (+000) Word Number of word/string pairs in this resource.
firstWord (+002) Word Word value of first pair.
firstString (+004) String Pascal string of first pair.
secondWord (+xxx) Word Word value of second pair.
secondString (+yyy) String Pascal string of second pair.
...
The resource compiler template follows:
#define rTaggedStrings $802E
/*------------------- rTaggedStrings --------------------*/
type rTaggedStrings {
integer = $$Countof(StringArray);
array StringArray {
hex integer; /* Key integer */
pstring; /* String */
};
};