---On Tue, 30 Oct 2001 18:54:56 PST, Bill Janssen said
> Mike, Chris,
>
> I'm trying to figure out how a URL for an uncollected link is
> "attached" to that link, so that the viewer knows to display it when
> the link is tapped. The URLs, presumably, are kept in the URL record,
> but what is stored in that link to find the URL?
It's been a looooong time since I looked at it, but, if memory serves...
The URL handling record is a bunch of number pairs of document numbers and
limits. The document numbers are for documents that contain lists of the
URL strings (NULL terminated) and the limit is the last document number
who's URL is in that record. Basically, you take the number of the
document that you want the URL of (say 237) and walk the list subtracting
the 'last document number' as you go. If the first pair is 174,352, you
know that document number 352 contains the URLs for documents 1 - 174.
Subtract 174 from your document number (237 - 174 = 63). The next pair is
385,353. So, you open document #353 and the 63rd string is the URL you are
looking for.
It should be explained pretty well in the source (externalform.c). I
don't think I should try to explain the mailto's from memory, but, the
source again should be your guide.
After all if the code can explain it to the processor, we should understand too.
--re: *REALLY* need more info on how URLs and mailto's are identified
Chris
Christopher R. Hawks Software Engineer
Syscon Plantstar a Division of Syscon International
-------------------------------------------------------------------------
Windows 95: 32 bit extensions and a graphical shell for a 16 bit patch to
an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company, that can't stand 1 bit of competition.