[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] How to perform a function while closing SuperCollider IDE?
Heey all,
I am searching for a way to store some data automatically while closing
SuperCollider IDE. I can remember before the new IDE it could be done using
the onClose message to the Document class. But that doesn't work anymore in
this case. Is there still a method available to achieve this?
a = "something to store";
Document.onClose = {
a.writeArchive(PathName(thisProcess.nowExecutingPath).parentPath +/+
"stuff"); };
// close and open program
b = Object.readArchive(PathName(thisProcess.nowExecutingPath).parentPath +/+
"stuff");
b.postln;
grtz,marinus
-----
http://soundcloud.com/marinus-klaassen
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/How-to-perform-a-function-while-closing-SuperCollider-IDE-tp7591562.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/