I'm asking this because the documentation is totally contradicting to itself on multiple occasions:
Problem is, after clicking the action, UI never appears and here's what i see in Console:
default pkd Waiting on thread <private> until Launch Services database seeding is complete.
default Finder [d <private>] <PKHost:0x600000c38cc0> Beginning discovery for flags: 1024, point: (null)
default Finder [d <private>] <PKHost:0x600000c38cc0> Completed discovery. Final # of matches: 0
error Finder nil extension for provider ID (<private>), error: (null)
error Finder Action with identifier (<private>) did finish with error (Error Domain=FPUIActionViewControllerErrorDomain Code=1000).
error Finder FP Custom action sheet finished with error Error Domain=FPUIActionViewControllerErrorDomain Code=1000 "(null)"
default pkd [d <private>] Final plugin count: 0
This is totally confusing, so if anyone has been able to use FileProviderUI on macOS - please share your success story.
Okay, here's my success story:
NSExtensionMainStoryboard
Info.plist key. Using NSExtensionPrincipalClass
worked like a charm.prepareForActionWithIdentifier:itemIdentifiers:
and prepareForError:
are called before viewDidLoad
thus outlets would be nil at that moment (on iOS it's vice versa)