Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: MacOS Application Support folder - Can Firemonkey find it?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Aug 10, 2017 10:06 AM Last Post By: Markus Humm
Michael Leahy

Posts: 239
Registered: 5/9/07
MacOS Application Support folder - Can Firemonkey find it?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 6:20 AM
Delphi Firemonkey MacOS (XE7 and 10.2)

I've been storing registration information inside the app bundle and Apple now says that breaks the digital seal when the app is signed.

Apple says to store such information in a subfolder com.bookup.myappname in the "Application Support" folder.

Does Firemonkey have a way to find this folder like it does other folders like Documents on MacOS?
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: MacOS Application Support folder - Can Firemonkey find it?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 10:08 AM   in response to: Michael Leahy in response to: Michael Leahy
Am 09.08.2017 um 15:20 schrieb Michael Leahy:
Delphi Firemonkey MacOS (XE7 and 10.2)

I've been storing registration information inside the app bundle and Apple now says that breaks the digital seal when the app is signed.

Apple says to store such information in a subfolder com.bookup.myappname in the "Application Support" folder.

Does Firemonkey have a way to find this folder like it does other folders like Documents on MacOS?

Have you asked this over ad the Mac OS specific group?
This is no Firemonkey topic, it's rather something about IOUtils from
the RTL, which contains the various TPath.GetXXX methods.

If you look at the help topics of those they clearly and nicely describe
which paths they return on which platform.

Greetings

Markus
Michael Leahy

Posts: 239
Registered: 5/9/07
Re: MacOS Application Support folder - Can Firemonkey find it?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 10, 2017 7:32 AM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Am 09.08.2017 um 15:20 schrieb Michael Leahy:
Delphi Firemonkey MacOS (XE7 and 10.2)

I've been storing registration information inside the app bundle and Apple now says that breaks the digital seal when the app is signed.

Apple says to store such information in a subfolder com.bookup.myappname in the "Application Support" folder.

Does Firemonkey have a way to find this folder like it does other folders like Documents on MacOS?

Have you asked this over ad the Mac OS specific group?
This is no Firemonkey topic, it's rather something about IOUtils from
the RTL, which contains the various TPath.GetXXX methods.

If you look at the help topics of those they clearly and nicely describe
which paths they return on which platform.

Greetings

Markus

There is a MacOD specific group? I've combed through the forums here and found none.

I do think this is a Firemonkey topic. Firemonkey apps should store their settings in the correct place on MacOS.

The documentation for TPath.GetXXX methods includes all kinds of calls including GetLibraryPath(), GetSharedDownloadsPath() and even GetRandomFileName() but I cannot find where to get the Application Support folder recommend by Apple in their documentation:

https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/AccessingFilesandDirectories/AccessingFilesandDirectories.html#//apple_ref/doc/uid/TP40010672-CH3-SW11
Use the Application Support directory constant NSApplicationSupportDirectory, appending your <bundle_ID> for:

Resource and data files that your app creates and manages for the user. You might use this directory to store app state information, computed or downloaded data, or even user created data that you manage on behalf of the user.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: MacOS Application Support folder - Can Firemonkey find it?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 10, 2017 10:06 AM   in response to: Michael Leahy in response to: Michael Leahy
Am 10.08.2017 um 16:32 schrieb Michael Leahy:
Markus Humm wrote:
Am 09.08.2017 um 15:20 schrieb Michael Leahy:
Delphi Firemonkey MacOS (XE7 and 10.2)

I've been storing registration information inside the app bundle and Apple now says that breaks the digital seal when the app is signed.

Apple says to store such information in a subfolder com.bookup.myappname in the "Application Support" folder.

Does Firemonkey have a way to find this folder like it does other folders like Documents on MacOS?

Have you asked this over ad the Mac OS specific group?
This is no Firemonkey topic, it's rather something about IOUtils from
the RTL, which contains the various TPath.GetXXX methods.

If you look at the help topics of those they clearly and nicely describe
which paths they return on which platform.

Greetings

Markus

There is a MacOD specific group? I've combed through the forums here and found none.

I do think this is a Firemonkey topic. Firemonkey apps should store their settings in the correct place on MacOS.

The documentation for TPath.GetXXX methods includes all kinds of calls including GetLibraryPath(), GetSharedDownloadsPath() and even GetRandomFileName() but I cannot find where to get the Application Support folder recommend by Apple in their documentation:

https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/AccessingFilesandDirectories/AccessingFilesandDirectories.html#//apple_ref/doc/uid/TP40010672-CH3-SW11
Use the Application Support directory constant NSApplicationSupportDirectory, appending your <bundle_ID> for:

Resource and data files that your app creates and manages for the user. You might use this directory to store app state information, computed or downloaded data, or even user created data that you manage on behalf of the user.

Hello,

there are:

embarcadero.public.delphi.platformspecific.OSX
embarcadero.public.delphi.rtl

TPath from IOUtils is clearly no FMX functionalty as it is independent
of that one. I do agree that it should support that folder, but maybe
the folks visiting those groups regularily know something about that.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02