diff --git a/README.md b/README.md index 31db01f47..863a4af10 100644 --- a/README.md +++ b/README.md @@ -446,7 +446,7 @@ Or if your app is iOS13+, or your app also supports Scenes, add the following co // custom handler - (void)handleAppleEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent { - NSURL *url = [NSURL URLWithString:[[event paramDescriptorForKeyword:keyDirectObject] stringValue]]; + NSURL *url = [NSURL URLWithString:[[replyEvent paramDescriptorForKeyword:keyDirectObject] stringValue]]; DBOAuthCompletion oauthCompletion = ^(DBOAuthResult *authResult) { if (authResult != nil) { if ([authResult isSuccess]) {