saving message state in standalone

Jul 12, 2009 at 8:24pm

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

– Pasted Max Patch, click to expand. –
#44714
Jul 12, 2009 at 8:40pm

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

#160919
Jul 13, 2009 at 2:49pm

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

#160920
Jul 14, 2009 at 8:06pm

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.

– Pasted Max Patch, click to expand. –
#160921
Jul 15, 2009 at 7:18am

Thanks Ben,

That is perfect.

Chris

#160922
Jul 20, 2009 at 3:30pm

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

– Pasted Max Patch, click to expand. –
#160923

You must be logged in to reply to this topic.