I’ve written a GTKmm application and I’m trying to create some OS X enhancements. I’d like to store my configuration file in the Application Support/myApp folder, however, I can’t figure out the proper way to locate this folder.
I’ve tried looking through the Core Foundation library (that I’m using to get my myApp.app path) but I can’t find anything.
Proper way to do it in C/C++:
Naturally, those are very old APIs and their use is no longer recommended by Apple. Despite that it gets the job done if you want to avoid Objective-C completely in your codebase.