Questions tagged [fileprovider-extension]
44 questions
7
votes
2 answers
How to add a File Provider to a MacOS Swift app?
On iOS, there is the File Provider API to create "virtual folders" (folders where the content is provided by an app). How could I do something similar on MacOS? If you wonder why I would want to do this, it's just that I'm trying to understand how…

Samuel Martineau
- 143
- 1
- 1
- 11
5
votes
2 answers
Alternative for Virtual file system (VFS) kernel extension on macOS M1
we have developed a kernel extension (KEXT) for a virtual file system (VFS) on macOS to integrate our software with external programs like Adobe InDesign or Microsoft Word. Our software and the KEXT are used by many of our customers.
As it looks…

Michael
- 532
- 1
- 6
- 15
5
votes
1 answer
Open Microsoft Office document directly from my own iOS app for in-place editing
I want to be able to edit in-place Office files hosted on my own server. By in-place I mean to open the file in Office, edit it, and get the changes sent back to my app/server directly.
I have partially achieved this by implementing a File Provider…

Rivera
- 10,792
- 3
- 58
- 102
4
votes
3 answers
FileProviderExtension won't be loaded in macOS 12.2
I am new to macOS development.
I am trying to develop macOS FileProvider extension, and everything was fine until I updated my macOS from 11 to 12.2.
After updating OS, FileProvider extension won't being loaded by NSFileProviderManager.add(domain)…

logoutnow
- 53
- 1
- 7
3
votes
1 answer
How to enable and debug a macOS file provider extension?
I am trying to build a barebone app with Xcode 12.5 Beta 3 on macOS Big Sur 11.2.2 with a file provider extension. I use the beta version of Xcode because previous versions do not provide a template for file provider extensions (example project on…

p13n
- 859
- 8
- 31
3
votes
0 answers
Cannot launch new FileProvider extension on macOS 10.15
I am trying to get the File Provider extension to work on macOS 10.15 Beta 7 (19A546d) with Xcode 11 Beta (11M392r) so far did not manage to get it to launch with a sample project. The documentation is very lacking and there must be something I…

SolidSun
- 2,149
- 2
- 23
- 28
3
votes
1 answer
NSFileProvider importDocument provides fileURL of empty file when saving new document from MSOffice apps
I'm trying to create a new document in Word.app and save to my app via FileProvider extension. My implementation of appropriate method is:
override func importDocument(at fileURL: URL,
toParentItemIdentifier…

abjurato
- 1,439
- 11
- 17
2
votes
1 answer
How to display download progress with FileProviderExtension on iOS
I've got an App that implements all the bells and whistles of the FileProviderExtension. Now the question arises what is required to display download/upload progress in the Files app?
Out there is a single previously asked question with a rather…

Til Blechschmidt
- 101
- 2
- 8
2
votes
1 answer
UIDocument, FileWrapper & Third-Party File Providers
I use document packages in my application (via FileWrapper API) and I am using the UIDocumentBrowserViewController class for document management. The document package basically represents a hierarchy of (text) files and folders. Everything works…

igorgiv
- 21
- 5
2
votes
2 answers
Importing files in iOS : UIDocumentPicker vs UIDocumentBrowser
As per the documentation, both UIDocumentPickerViewController and UIDocumentBrowserViewController can be used for importing documents outside an apps sandbox.
For selecting & importing a document from local document providers/cloud locations, which…

Fazil Uruniyengal
- 286
- 1
- 3
- 15
2
votes
1 answer
iOS 11 File Provider - The working set is never enumerated
I'm currently working on the iOS 11 File Provider extension to enumerate files stored remotely by our service.
So far I've been able to browse through my cached database of Files, as well as an cloud enumerations of my item.
My next step is to…

Pulo
- 125
- 6
2
votes
1 answer
NSFileProviderExtension extension show download Progress
I have implemented FileProvider Extension.
class MyProviderExtension: NSFileProviderExtension {
override func startProvidingItem(at url: URL, completionHandler: ((_ error: Error?) -> Void)?) {
downloading file using URL and…

AppleBee
- 1,199
- 12
- 26
1
vote
1 answer
How to Refresh Specific Directory in macOS File Provider Extension
I'm currently working on a macOS File Provider extension and I've added a refresh button using an info list. Clicking this button triggers a function, as shown:
func performAction(identifier actionIdentifier: NSFileProviderExtensionActionIdentifier,…

Swift User
- 11
- 1
1
vote
0 answers
Is it possible to speedup FileProviderEnumerator for many files?
I'm creating FileProvider extension for MacOS. In my case I have a remote folder with a lots of small files (~50k).
If I trying to open file directly by known name (for example with a cat in terminal), FileProvider asks listing of directory first —…

Vladimir
- 31
- 2
- 5
1
vote
1 answer
Is there a way to prevent file deletion in deleteItem callback in macOS FileProviderExtension?
In macOS FileProviderExtension, when user deletes an item in Finder, a deleteItem callback is invoked. And here I don't mean trashing the item but really deleting it.
Now let's consider following scenario:
User selects an item (file or folder) in…

mixtly87
- 1,675
- 15
- 32