RKRM sample buildlist.c gives examples of lists with named nodes. That's a good place to start.
Sorry i could have mentioned that
Thanks for the information about semaphores. It seems I would only need a semaphore while adding names to the List. Then it can be released. If the List is only static (after items have been added) then we don't need a semaphore to read the List items.
You're welcome. However, do not keep the reading bit too light. You do not know who is reading/writing into the list at what exact time. So you cannot read the list if it is being written to. Well, you could but that could lead to missing names. Unless you cache the replacement base names that is only checked against.
e.g. up til now i was assuming you wouls create the replacement list based on what icon library tries to read and compare it to your list of alternating/replacement icons. I hope that did made any sense.
We are only comparing basenames. Icon Library only displays one window at a time. So we are only matching the name of the current icon which can represent a file or a drawer. The name it compares has no .info extension. So drawers are same as files.
Ok, the use of a single basename is a design decision that can be respected. However, icon library displaying one window at a time is a) not icon libraries doing and b) see prefs/wanderer/tab generic/method = classic/use
Thereby, if you have multiple disks, each disk has it's own wanderer window.
As for the alternate icon name there only needs to be one name for each icon. It's only a list of basenames. So if we are comparing "multiview" in Utilities then it finds the basename "multiview" in the alternate icons list. So it displays that icon. If we then move to Storage directory and there is another "multiview" icon being stored there it still finds the "multiview" icon in the alternate icons list and it only displays that icon. So it doesn't matter which directory the current icon is located in. There will only be one corresponding alternate icon in the list. So I see what you mean about drawers and files with same name.
Thanks for your input and as i said earlier, it is a design decision i can respect (e..g not including every icon/program on the disk).