-
Notifications
You must be signed in to change notification settings - Fork 1
Description
In my opinion, both TOCTable and TOCLayer manager could work perfectly in a static approach, with no need to spend memory in storing a real object. When you want to retrieve a layer or table, you want to retrieve it among the ones opened at that moment, not from any previous state. Therefore, I think what we usually do in our code (we always create a new object and directly call the method onto it) doesn't make much sense and is a small waste of resources.
Maybe we could provide both options, both as an object (the only situation I think it could be useful is when you want to retrieve a series of layers/tables at the same point, as it will retrieve and traverse the windows only once) and as a static method, which will fit for most situations.