Skip to content

Commit 51fb959

Browse files
committed
Convert IBAction to objc
1 parent 96f55df commit 51fb959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devdocs-macos/DocumentationViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DocumentationViewController: NSViewController {
9797

9898
// MARK:- Page search
9999

100-
@IBAction func searchPageContents(_ sender: NSSearchField) {
100+
@objc func searchPageContents(_ sender: NSSearchField) {
101101
let argsBytes = try! JSONSerialization.data(withJSONObject: ["term": sender.stringValue])
102102
let args = NSString(data: argsBytes, encoding: String.Encoding.utf8.rawValue)! as String
103103
webView.evaluateJavaScript("search( (\(args))[\"term\"] );")

0 commit comments

Comments
 (0)