TPath.GetPublicPath on Mac OS

TPath.GetPublicPath on Mac OS

Hello, on Mac OS TPath.GetPublicPath is /Users//Public
And this is different for users

Where I can save application settings to store global application settings with will be available for all users?

Comments

  1. Interesting. Last time I looked at SaveState it was Android only. Looks like I could save a TFDMemTable to it now.

    ReplyDelete
  2. I use gethomepath but that can return the cloud drive on OSX I find?

    ReplyDelete
  3. Brian Hamilton GetHomePath is personal folder, question about global folder

    ReplyDelete
  4. the article linked above uses gethomepath "To make this save data persistent, add the following line at the beginning of the FormCreate event:
    Delphi:

    SaveState.StoragePath := TPath.GetHomePath; "

    ReplyDelete
  5. Note that if your app is sandboxed, then you cannot access global folder unless you specifically request a temporarily exception in the Entitlement list.

    ReplyDelete

Post a Comment