Using selectFolder() in a class, how to reference the callback function?
in
Programming Questions
•
1 month ago
Hello, I am attempting to use selectFolder() within an ImageLoader class I have created, but it is unable to find the callback function.
- class ImageLoader {
- // vars, methods etc.
- void init() {
- selectFolder("Select a folder to process:", "folderSelected");
- }
- }
Main app:
- ImgLoader images = new ImgLoader(3000);
- void setup() {
- size(400,400);
- images.init();
- }
When running .init() in startup() { } I get:
folderSelected() could not be found
Any ideas how to reference this function, or is my logic just completely flawed?
Cheers
- Roo
1