Gerriet M. Denkmann
On 15 Jul 2018, at 23:23, Quincey Morris <quinceymorris@...> wrote:I did.
The error message is:
Cannot find service provider for selector nnn:userData:error: or nnn:: for service nnn
Which suggest that two selectors are indeed tried.
That is: Objective-C uses the traditional form “nnn:userData:error:”, i.e.:
- (void)nnn:(NSPasteboard *)pboard userData:(NSString *) userData error:(NSString * _Nullable *)error
Whereas Swift now has only two arguments: “nnn::”
@objc func nnn(_ pboard: NSPasteboard, _ userData: String)
The error parameter has never worked; so it makes sense that Swift finally got rid of it.
There are some blogs which recommend a Swift form with error parameter (and only one underline) - same as your suggestion.
Obviously some previous incarnation of Swift still did use it.