CtlCandidateDelegate // Remove useless "AnyObject".

This commit is contained in:
ShikiSuen 2022-10-10 14:58:57 +08:00
parent d4ba4dbdcf
commit 072ecdf907
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ open class CtlCandidate: NSWindowController, CtlCandidateProtocol {
return result.blended(withFraction: colorBlendAmount, of: blendingAgainstTarget)!
}
open weak var delegate: CtlCandidateDelegate? {
open var delegate: CtlCandidateDelegate? {
didSet {
reloadData()
}

View File

@ -8,7 +8,7 @@
import Cocoa
public protocol CtlCandidateDelegate: AnyObject {
public protocol CtlCandidateDelegate {
func candidatePairs(conv: Bool) -> [(String, String)]
func candidatePairSelected(at index: Int)
func candidates(_ sender: Any!) -> [Any]!

View File

@ -18,7 +18,7 @@ public class CtlCandidateIMK: IMKCandidates, CtlCandidateProtocol {
public static let defaultIMKSelectionKey: [UInt16: String] = [
18: "1", 19: "2", 20: "3", 21: "4", 23: "5", 22: "6", 26: "7", 28: "8", 25: "9",
]
public weak var delegate: CtlCandidateDelegate? {
public var delegate: CtlCandidateDelegate? {
didSet {
reloadData()
}