At 12:00am -0700 00-08-11, Palm Developer Forum digest wrote:
>Subject: resource types
>From: "Owen G. Emry" <[EMAIL PROTECTED]>
>Date: Wed, 09 Aug 2000 23:57:12 -0400
>X-Message-Number: 137
>
>Are there any rules governing the use of resource types?  I want to avoid
>colliding with other resources in the resource type namespace.
>
>More specifically, if I append custom resources (containing, say, binary
>data) to my (or any) application's resource database, is there a way to
>know what resource type(s) are "safe" to use (i.e. unlikely to conflict
>with the other resource types typically found in an application).
>
>I realize, of course, that I can simply survey some applications to see
>what resources they contain, but I prefer not to solve problems by guessing.
>
>Thanks as always,

To be as safe as possible, here are some of the guidelines that I follow:

1. Only use resource ids in the range from 100 to 9999.

2. Don't use resource types that are all lower-case.

3. Don't use any of these not-all-lowercase Palm OS resource types:

'FONT'
'MBAR'
'MIDI'
'Talt'
'Tbmp'
'Tbsb'
'tAIB'
'tAIN'
'tAIS'
'tFRM'
'tSTL'
'tSTR'

4. Avoid using Mac OS resource types that are well-known, as they can 
cause some PRC checking tools to complain about bogus resource data.

a. Here are some of the resources that get munged into forms, menus, 
bitmaps, etc. by PalmRez:

'CODE'
'DATA'
'ICON'
'MENU'
'NFNT'
'PICT'
'tBTN'
'tCBX'
'tFBM'
'tFLD'
'tGDT'
'tGSI'
'tLBL'
'tLST'
'tPBN'
'tPUL'
'tPUT'
'tREP'
'tSCL'
'tSLT'
'tTBL'
'tTTL'

b. Here are some Mac OS resource types that occasionally will 
accidentally show up in a PRC:

'BNDL'
'FREF'
'SIZE'
'TMPL'

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to