>At 4:05 AM +0200 6/8/01, Terry Dennis wrote:
>  >Right ... but I don't have the actual pointer.  All I have is an address of
>  >a location (actually a pointer to a string) somewhere within the chunk.

[snip]

>  >This all came about because of 4.0's change to restrict tAIS usage to
>  >"system" type stuff.  It used to be that I could use the address of the
>  >first tAIS entry to also be the address of the chunk.  Can't do that with a
>  >tSTL, because they have that stupid prefix string in front of the first
>  >entry, as well as an int for the count of entries.

I must be missing something. If you have the address of the first 
string in the list (for the tAIS case), that gives you the address of 
the chunk. If you've got the address of the first indexed string in a 
tSTL resource, and you control the contents of the resource (e.g. the 
prefix is always an empty string), then why can't you just subtract 
three from the address, thus skipping over the length count and the 
null byte in the prefix?

>Invent your own resource format.  It's easy.  :-)

Yes, but...

1. PalmRez will no longer be able to do transliteration from MacRoman 
to PalmLatin, so your resource data would either have to be PilRC 
text format or in Mac resources using the Windows code page w/o 
transliteration.

2. Various tools (both Palm and 3rd party) "know" about the set of 
resource types that should contain text (based on what PalmRez 
supports for transliteration). Any new type will be ignored for 
purposes of auto-moving into overlays, spell-checking, testing for 
untranslated text, etc.

-- 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