I have an iOS-app that users can select a folder via UIDocumentPickerViewController to add it under the Favorites section. This folder can also be a Volume, such as the USB drive.
The good thing. When I subclass NSFilePresenter and use the Volume-URL, every change to that Volume is reported.
The bad thing. It seems like there is no way to figure out if that volume is available or not. I overwritten every subclass method in NSFilePresenter. However if I unplug the USB nothing is reporter, nor if I plug it in again.
The reason as to why I want to get reported is to hide the location from the Favorites section if it is unplugged and unavailable, vice versa I like to show the location when the USB is plugged in again.
The good thing. When I subclass NSFilePresenter and use the Volume-URL, every change to that Volume is reported.
The bad thing. It seems like there is no way to figure out if that volume is available or not. I overwritten every subclass method in NSFilePresenter. However if I unplug the USB nothing is reporter, nor if I plug it in again.
The reason as to why I want to get reported is to hide the location from the Favorites section if it is unplugged and unavailable, vice versa I like to show the location when the USB is plugged in again.