Text.edit vs Message in UI

Aera's icon

I'm building a device where I want to show a dynamic text on the UI (a bunch of note names) and I want the text to save and open with the device. Text.edit with a pattr works perfectly for what I have in mind, but text.edit let's the user drop a file and display the filepath. Can I turn this behaviour off?

Otherwise I'd have to connect a message object to text.edit to display, but that seems cumbersome.

Any other ideas?

Source Audio's icon

I think there is no way to prevent textedit from accepting dropped items

schlam's icon

maybe I don"t understand well the problem, sorry, but If your textedit is just used to display notes without interactions from the user, you can check "read only" or "ignore click" or even put a transparent panel in front of it...

Aera's icon

Read Only and Ignore Click don't change that behaviour unfortunately. Transparent panel would work but actually the text is on top of a live.text that is clickable. I found a way around it by simply changing the behavior of my js that sends the text, so now I can simply use a message object luckily.

Source Audio's icon

even transparent panel over textedit would not work.

comment object is also usefull for displaying text,

it deals different with symbols, for example

Aera's icon

Changes in comment also do not save with the Ableton project unfortunately. So you need to find a way to store the values internally (textedit actually works for that part for me, but you could also use a coll or a dict...which seems like overkill) and loadbang it to a comment or message that displays on the ui.