Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFileCoordinatorMBS class.

NSFileCoordinatorMBS.addFilePresenter(filePresenter as NSFilePresenterMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds a new file presenter.

If you invoke addFilePresenter: you have to do a balancing invocation of removeFilePresenter before the file presenter is deallocated, even in a garbage-collected application.

If your application reads an item and then registers a file presenter for it there is a possible race condition in which between those two steps another process does coordinated reading or writing of the item, without any messages sent to your not-quite-registered file presenter. This can leave your file presenter ignorant of the fact that what it knows about the item it just read is already out of date, or under the misconception that just because it hasn't received a relinquish... method it owns the item. To avoid that race condition you can invoke addFilePresenter in the same block that you pass to coordinateReadingItemAtURL to read what the file presenter will present.

NSFileCoordinatorMBS.filePresenters as NSFilePresenterMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The process' file presenters.

NSFileCoordinatorMBS.FileURL(file as folderitem) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Convenience method to give you an URL for a folderitem.

NSFileCoordinatorMBS.removeFilePresenter(filePresenter as NSFilePresenterMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes the file presenter.

The items on this page are in the following plugins: MBS MacCloud Plugin.


The biggest plugin in space...