I was using the selectInput() in 2.0b6 and it worked fine. Today I went back, upgraded to 2.0b7 and it doesn't work. I went back to 2.0b6 and that still works. My code is below. When I run it I get the following error: Cannot find a class or type named "File" with line 11 highlighted. If I change line 11 below to read:
void loadFile(String selection) {
It gets past that point but then gives the error:
The function getAbsolutePath() does not exist.
Can anyone help? Did something change or did I get mixed up somewhere?
void setup() {
selectInput("Select a definition file to load:", "loadFile");
}
void draw() {
//println("running...");
//delay(1000);
}
void loadFile(File selection) {
if (selection == null) {
println("Window was closed or the user hit cancel.");