3

I am new to MAC development and using finder sync extension and successfully set badge icons for file and folder but my issue is that when i complete sync any file or folder to server the badge icon is not changing form sync to complete state. Please any suggestion how do i can refresh my file/folder badge icon (Like Dropbox)

Liviu
  • 1,859
  • 2
  • 22
  • 48

1 Answers1

0

It's simple, First establish an Inter Process communication between your app and your extension. In an IPC, your app acts as a client and extension act as a server. Now you know the state of a specific file, so just send the file path and status to the extension through IPC, Once extension receives the path and status, then call the Finder Sync controller’s setBadgeIdentifier:forURL: method to set the appropriate badge.

Dass
  • 326
  • 1
  • 11
  • Even though I have an IPC between FinderSync and the MainApp, I'm still facing the issue where Finder doesn't show sync icon in Finder column view. Copy-file circle-progress animation seems to affect it. Just blank white space is shown, regardless of how many times I call the `setBadgeIdentifier` method. – mixtly87 Sep 26 '18 at 19:35