File::getCurrentWorkingDirectory() returns nothing?


#1

Hi,

I am having a little bit of trouble with the File::getCurrentWorkingDirectory() method on the Mac. When I run my project via Xcode (by clicking Build and Run), it picks up the current working directory no problem, by when I run my application by double clicking on the MyApplication.app icon, it returns the current working directory as nothing…

And, whatever happened to the File::getCurrentApplicationFile() method?

Philip


#2

Strange - the implementation’s really simple, as you can see in juce_mac_Files.cpp - it just calls through to getcwd() and returns the result. Can’t see how it could go wrong!

And you can still get the executable filename - I just tidied things up so now you use File::getSpecialLocation() instead, which gives a few more options.


#3

Thanks for that :slight_smile:


#4