On Monday, Mar 7, 2005, at 05:24 US/Pacific, Tetsuro KURITA wrote:
However, I have a solution that might be good for you. It is
attached. It shows how to use some calls of NSDictionary. If you need
others, they should be quite easy to add.
Thanks for you kind example code. But your sample is not enough for
me. Because your sample can not cheange the value of existing entry.
The sample didn't illustrate every possibility. However, I wrote: "If
you need others, they should be quite easy to add.". It's true. The
sample is now extended for 'change_value' and 'remove'.
I will give up using NSMutableArray. I will use a following handmade
code instead of NSMutabelDictionary.
Your parallel list approach looks quite nice. There is another list
"Macintosh Scripting Systems <email@hidden>" where
techniques for speeding up things like your code were discussed about a
year ago. Maybe a subject like "Serge Technique" or "Serge Method".
Very interesting. That's why I put my example in a «script». But I
think I will use the NSDictionary methods until someone figures out how
to use NSMutableDictionary (or it gets fixed) because I like the
ability to read/write xml to files and URLs easily.