I am currently developing a Dropbox-like mac application. The application is syncing files in a folder placed in "~/" on my mac. I'd like to add badges showing sync status on the files managed by my application.
In order to do so, I have read the doc from apple : https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Finder.html .
What I know so far :
- In order to show badges I need to develop a Find Sync extension
- The extension can't communicate directly with the main application (Unless it use the NSUserDefault of the application group in which I'm supposed to place both my main app and my extension)
- The app extension has to be sandboxed (so the main app has to be too in order to communicate with the extension)
- Sandboxing the app implies that I have to place my files in a directory dedicated to it (which is not compatible with my app - as the user has to be able to choose where to physically store his files).
- There are unofficial ways for showing badges (seems to be the reason why dropbox isn't available on the store)
My Question now is:
Is there a way that my app can have badges + store files anywhere on the disk (not only in sandbox allowed directories) + pass app store validation?