4

In Windows I use CSIDL_APPDATA folder to store the application data for the current user and C_CSIDL_COMMON_APPDATA for all users application data (shared data).

In Mac OS I would use:

~/Library/Application Support/YourApp = Application data for the current user
/Library/Application Support/YourApp = Application data for all users

("~" = home directory of the user)

How can I get the above Mac OS folders using FireMonkey?

Johan
  • 74,508
  • 24
  • 191
  • 319
DelphiFM
  • 133
  • 2
  • 6

1 Answers1

3

Part of your question: Application data for current user = GetHomePath

Arjen van der Spek
  • 2,630
  • 16
  • 20
  • I do the above, then just hard code the rest of the path. Wrap it in `{$IFDEF MACOS}{$ENDIF}` and you're good to go. – Marcus Adams Nov 01 '11 at 20:26