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?
Hello, on Mac OS TPath.GetPublicPath is /Users/
And this is different for users
Where I can save application settings to store global application settings with will be available for all users?
You can use universal solution for all platforms docwiki.embarcadero.com - FireMonkey Save State - RAD Studio
ReplyDeleteor this service
http://docwiki.embarcadero.com/Libraries/Berlin/en/FMX.Platform.IFMXSaveStateService
Thank you, Yaroslav Brovin
ReplyDeleteAlex Egorov Welcome
ReplyDeleteInteresting. Last time I looked at SaveState it was Android only. Looks like I could save a TFDMemTable to it now.
ReplyDeleteI use gethomepath but that can return the cloud drive on OSX I find?
ReplyDeleteBrian Hamilton GetHomePath is personal folder, question about global folder
ReplyDeletethe article linked above uses gethomepath "To make this save data persistent, add the following line at the beginning of the FormCreate event:
ReplyDeleteDelphi:
SaveState.StoragePath := TPath.GetHomePath; "
Note that if your app is sandboxed, then you cannot access global folder unless you specifically request a temporarily exception in the Entitlement list.
ReplyDeletefor me, not sandboxed
ReplyDelete