Skip to content

Instantly share code, notes, and snippets.

@jsundram
Last active March 26, 2016 18:09
Show Gist options
  • Save jsundram/29d5449069d40e59b595 to your computer and use it in GitHub Desktop.
Save jsundram/29d5449069d40e59b595 to your computer and use it in GitHub Desktop.
Trying to figure out when a sketch was closed
void setup(){
println("setup");
}
void draw(){
}
void stop(){
// doesn't seem to ever get called
println("stop");
}
void dispose(){
// gets called when window is closed, yay, but not when "Stop" button is pressed.
println("dispose");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment