Anyone know if there is a way to restrict text input to a GTextField? I only want to allow numeric related chars (0123456789.-)? I have a function defined to handle textfield events and it's getting called but I'm not sure where to go from there.
Hi - I am running into an issue where calling 'selectInput' freezes up my project. I can call selectInput from a mouse event and it works but not from a function subsequent to calling 'selectInput. This is on OSX and have tested it in the IDE as well as in an exported application.
The functionality is for a simple text file converter: user selects a text file, do some processing and then prompt the user to save the file under a new name. I stripped out everything in the test sketch below to try to isolate the issue.
Anyone seen this before and is there a workaround?
thanks!
void setup() { size(200, 200); }
void draw() { }
void test(String loadPath) {
String output[] = new String[25];
for(int i = 0; i < 25; i++) { output[i] = str(random(25)); }
I am wondering if I can access the command line through Processing on OSX so that I can call various UNIX utilities that I have installed - passing params, etc. and then either having the utility write to a file or get back the result in Processing through stdout.
For example - I use a conversion utility called pstoedit and in the OSX Terminal would invoke it like this: