Arraylist & Jit.cellblock
Hello Max community.
I am trying to find if jit.cellblock can be manipulated as an array with shifting functions. What I want is to store my data in cells but after a specific time to delete the first entry and shift the rest of the cells one position up (so that the second entry becomes first).
Using jit.cellblock is not necessary in my occasion, I could also use another option? Please recommend to me the best - I am going to use this with text messages, no more than 500 entries.
Many thanks.
S.
For a 1D array, the zl objects are probably easier to manage:
Thanks Jeremy for the suggestion. May I ask though, how easy/difficult is going to be to manipulate these entries in zl as they are text messages such as: Entry 1 - "This is incoming message 1", Entry 2 - "This is incoming message 2", etc. I haven't seen this kind of processing with zl objcts that's why I am confused.
you may want to store your lines of text in a text object or a coll and then use zl list manipulation on lists of integers to alter the way you access the text (ie use integers as indices to lines of text)...
Agreed with Terry McDermott. Coll + zl manipulation of the lookup index is most likely the best way to go.
Best, Jeremy