CtlCandidateDelegate // Remove useless "AnyObject".
This commit is contained in:
parent
d4ba4dbdcf
commit
072ecdf907
|
@ -39,7 +39,7 @@ open class CtlCandidate: NSWindowController, CtlCandidateProtocol {
|
||||||
return result.blended(withFraction: colorBlendAmount, of: blendingAgainstTarget)!
|
return result.blended(withFraction: colorBlendAmount, of: blendingAgainstTarget)!
|
||||||
}
|
}
|
||||||
|
|
||||||
open weak var delegate: CtlCandidateDelegate? {
|
open var delegate: CtlCandidateDelegate? {
|
||||||
didSet {
|
didSet {
|
||||||
reloadData()
|
reloadData()
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
|
||||||
public protocol CtlCandidateDelegate: AnyObject {
|
public protocol CtlCandidateDelegate {
|
||||||
func candidatePairs(conv: Bool) -> [(String, String)]
|
func candidatePairs(conv: Bool) -> [(String, String)]
|
||||||
func candidatePairSelected(at index: Int)
|
func candidatePairSelected(at index: Int)
|
||||||
func candidates(_ sender: Any!) -> [Any]!
|
func candidates(_ sender: Any!) -> [Any]!
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class CtlCandidateIMK: IMKCandidates, CtlCandidateProtocol {
|
||||||
public static let defaultIMKSelectionKey: [UInt16: String] = [
|
public static let defaultIMKSelectionKey: [UInt16: String] = [
|
||||||
18: "1", 19: "2", 20: "3", 21: "4", 23: "5", 22: "6", 26: "7", 28: "8", 25: "9",
|
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 {
|
didSet {
|
||||||
reloadData()
|
reloadData()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue