i suspect there is an older version somewhere hidden in a sketch or a code folder.
what controlP5 version are you using? you can find that out when starting a sketch that uses controlP5, and a line like
ControlP5 0.3.2 infos, comments, questions ...
will appear in processing's console.
Code:
import controlP5.*;
ControlP5 controlP5;
void setup() {
controlP5 = new ControlP5(this);
}
void draw() {}
since function setFocus(boolean) was introduced (hm, i have to guess here, a changelog would be handy now) with version 0.2.8 and it gives you an error message, meaning the method cannot be found, i suspect processing is not using version 0.3.2 but refers to an earlier version that is somewhere hidden in the sketchbook-folder. did you try a search for controlP5.jar? the only controlP5.jar should be located at
~/Documents/Processing/libraries/controlP5/library/controlP5.jar
if there are more controlP5.jar files floating around on your disk / in the sketchbook-folder, that might be the reason for your strange encounters.
best,
andreas