saving message state in standalone
Hi,
I am using prepend set to add some text to a message. I need this text to automatically save within the message so that when the application is reopened the prepended text is still in the message. I've tried autopattr and patchstorage but no luck. Alternatively the text would be stored in a coll object and saved for when the application is reopened. This does not seem to work either. Does anyone know how to do this?
Thanks,
Chris
Is the user entering the text? I think [pattr] can recall the contents of [textedit]. If not then you could [loadmess 1] the [coll] and connect it to the right inlet of the [message] to set it when the patch loads.
lh
The user will be entering the text by hitting another message connected to a prepend set (or the right inlet). My issue is that neither the message or the coll is saving it's contents once it has been entered by the user. It works with a patch since the user can simply save it, however, as a standalone the save button is disabled.
Cheers,
Chris
Chris,
Many ways to do this. One way is to save the message in a text file on close and bang it out on open. pattr would be another, maybe easier, way to do it.
Thanks Ben,
That is perfect.
Chris
ben@cycling74.com wrote on Tue, 14 July 2009 22:06pattr would be another, maybe easier, way to do it.
A pattrstorage would have the advantage, that it could save all other sorts of values as well:
Stefan