I’m trying to set my FileChooser object to open in the same directory that it used the last time I opened a file,
using getCurrentWorkingDirectory() thus:
[code]FileChooser theFileChooser (“Please select file you want to open…”,
bool fileSelected = theFileChooser.browseForFileToOpen();
File theFile (theFileChooser.getResult()); theFile.getParentDirectory().setAsCurrentWorkingDirectory();
But this doesn’t seem to be working. I’m sure I’m just using this call incorrectly, but what’s the right way to do this?