Questions tagged [findersync]

In OS X, the Finder Sync extension point lets you cleanly and safely modify the Finder’s user interface to express file synchronization status and control. Unlike most extension points, Finder Sync does not add features to a host app.

In OS X, the Finder Sync extension point lets you cleanly and safely modify the Finder’s user interface to express file synchronization status and control. Unlike most extension points, Finder Sync does not add features to a host app. With a Finder Sync extension you register one or more folders for the system to monitor. Your Finder Sync extension then sets badges, labels, and contextual menus for any items in the monitored folders. You can also use the extension point’s API to add a toolbar button to the Finder window.

82 questions
4
votes
1 answer

How to force finder sync extension to refresh visible items?

I have a Finder Sync Extension (FSE) which shows statuses of files. Is there a way I can force FSE to again request statuses for all files/folder currently visible in Finder window.
mixtly87
  • 1,675
  • 15
  • 32
4
votes
0 answers

How to open a folder via Finder using Swift in Xcode from a Finder Sync Extension

I am trying to open a specific folder when a user clicks on a menu item in the Finder Sync Extension I am writing. I know there are many similar questions posted because I have looked at them but none of the solutions are working in my…
Alec
  • 666
  • 8
  • 23
4
votes
0 answers

Finder Sync Extension

I need to write a simple command line tool (daemon) in swift with the Finder Sync Extension. So I created a sample command line tool app and added a target with Finder Synch Extension. But when I ran the project only command line tool app process is…
Rahul.Shikhare
  • 179
  • 1
  • 16
4
votes
0 answers

How to unit test Finder Sync Extension?

Is there any way Finder Sync Extension can be unit tested? Is only way to test the extension to factor the code into a framework and then have the framework tested?
mixtly87
  • 1,675
  • 15
  • 32
4
votes
0 answers

Finder Sync extension Xcode template issue

I've tried the Finder Sync Xcode provided template, just changed the working directory, but it fails: extension installation log shows in /var/log/system.log and the extension shows in the Pref Panes, but: no icon overlay shows, no program log in…
moala
  • 5,094
  • 9
  • 45
  • 66
4
votes
0 answers

Finder Sync plugin and NSXPCConnection

I have the following situation: there is a main, non-sandboxed application; there is a Finder Sync plugin, bundled into this application. Sandboxed; there is a XPC helper bundled into this application. Sandboxed. Problem: opening NSXPCConnection…
Nickolay Olshevsky
  • 13,706
  • 1
  • 34
  • 48
4
votes
3 answers

FinderSync Extension - requestBadgeIdentifierForURL is never called

I have tested the template provided in Xcode for making a FinderSync Extension. Everything works well except two things: a) The method requestBadgeIdentifierForURL is never called by the system when a folder is monitored so that badges are not set.…
3
votes
1 answer

Finder Sync with App Sandbox OFF not working

I created a simple Finder Sync (FinderSync) extension (appex) and it comes by default with App Sandbox ON (in .entitlements com.apple.security.app-sandbox true). Everything works fine but I need to access a specific folder on the macOS via this…
StefanS
  • 1,089
  • 1
  • 11
  • 38
3
votes
1 answer

FinderSync Extension runtime error: The file couldn’t be opened because you don’t have permission to view it

I'm writing a FinderSync extension that places an item in the context menu. When I right-click, I want the title of the menu item to change based on the selected file's contents. However, when I try to read the contents using Data(contentsOf:…
Ky -
  • 30,724
  • 51
  • 192
  • 308
3
votes
0 answers

Adding Product Module Name to NSExtensionPrincipalClass in FinderSync plist crashes it

My cocoa application has a finder sync extension. As suggested in the Apple guide: https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Finder.html I added $(PRODUCT_MODULE_NAME) to my finder's info.plist.…
Sandeep T D S
  • 481
  • 3
  • 15
3
votes
1 answer

Weird behavior of Finder Sync Extension's tool bar item menu

I am building a macOS app with Finder Sync Extension, which adds a tool bar item to the Finder. I created the tool bar item menu like this: - (NSMenu *)menuForMenuKind:(FIMenuKind)whichMenu { NSMenu *menu = [NSMenu new]; NSURL *URL = ...//…
hklel
  • 1,624
  • 23
  • 45
3
votes
1 answer

Finder badge icon not refresh after complete sync in Finder Extension in Cocoa

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.…
3
votes
1 answer

FinderSync issues with sidebar icon, toolbar icon and context menu

I am developing a mac app that must provide support for FinderSync application extension. Everything works fine, except some sidebar and toolbar icon issues. Is there a way to programatically add the toolbar and sidebar icons without user…
ciprian
  • 175
  • 7
3
votes
1 answer

FinderSync context menu calls action in wrong class

I've got a really weird issue here: I'm writing a FinderSync extension, more specific, I'm adding elements to the context menu. Now if I'm packing everything into one class, it runs fine: 1) I've got the main extension class, called FinderSync 2) In…
Christian
  • 56
  • 5
3
votes
1 answer

OS X Finder Sync Extension

I am not able to create a simple Finder Sync Extension. I have created a new OS X project and added the Finder Sync Extension target and I ran the extension attached to finder. The code appears to be running the init methods and the toolbar items…
Douglas Cobb
  • 193
  • 1
  • 9