Hi,
I’m getting data (approx 200,000 data points) I have generated from a text file, when the selectFolder method fires the callback and runs my method to process it, the program is of course locked into this course of action until it is finished reading and processing the data. What I would like to be able to do is have a progress bar on screen that would show how far through it is. I know I can’t do this when it is reading the data as it is never in the draw loop, so that is why I’m after a threaded solution.
I am trying to use map() to get the progress but not being in the draw means nothing is ever updated visually.
Is there a way to call my selectFolder() call (demonstrated below) OR the callback method processFolderSelected in their own thread?
and yes, I am aware that selectFolder() is called in it’s own thread.
What I am currently doing:
selectFolder("Select a folder to process:", "processFolderSelected");
What I am trying to do (the idea, not this actual code):
thread("selectFolder("Select a folder to process:", "processFolderSelected")");
What I tried:
thread("selectFolder("Select a folder to process:", "processFolderSelected")");
thread(\"selectFolder(\"Select a folder to process:\", \"processFolderSelected\")");
selectFolder("Select a folder to process:", thread("processFolderSelected"));