Вопрос

What is the equivalent of Window's C:\Users\userName\AppData\Roaming\appName?

I need a directory that won't cause permission problems to store the updateable part of my application so I can automatically download and override my content.

Thank you.

Это было полезно?

Решение

/Users/USERNAME/Library/Application Support/

Edit:

This answer has drawn a lot of upvotes despite its minimalistic nature. Therefore, I want to point out the things mentioned in the comments here to make them more visible:

  • There are several other folders being used for application data / configuration, as mentioned in this answer.
  • If writing an application, don't hardcode that path. Instead, use macOS' API to retrieve it. This question has several answers for both ObjectiveC and Swift.

Другие советы

~/Library/Application Support/ 

in shift+command+G in finder

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top