Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
osx_paths.mm File Reference
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
#import <string>
#import "osx_paths.h"

Go to the source code of this file.

Functions

static std::string getUserDirectoryPath (NSSearchPathDirectory directory)
 
std::string osx_GetAppSupportPath ()
 Get the user's Application Support path (typically ~/Library/Application Support) More...
 
std::string osx_GetCachesPath ()
 Get the user's Caches path (typically ~/Library/Caches) More...
 

Function Documentation

static std::string getUserDirectoryPath ( NSSearchPathDirectory  directory)
static

Definition at line 30 of file osx_paths.mm.

std::string osx_GetAppSupportPath ( )

Get the user's Application Support path (typically ~/Library/Application Support)

Returns
string containing POSIX-style path in UTF-8 encoding, else empty string if an error occurred.

Definition at line 59 of file osx_paths.mm.

std::string osx_GetCachesPath ( )

Get the user's Caches path (typically ~/Library/Caches)

Returns
string containing POSIX-style path in UTF-8 encoding, else empty string if an error occurred.

Definition at line 64 of file osx_paths.mm.