Skip to content

Commit

Permalink
take advantage of Selector being StringLiteralConvertible
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed Dec 8, 2015
1 parent 9593f09 commit fdb37f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KZLinkedConsole/KZLinkedConsole.swift
Expand Up @@ -27,7 +27,7 @@ class KZLinkedConsole: NSObject {
self.bundle = bundle

super.init()
center.addObserver(self, selector: Selector("didChange"), name: "IDEControlGroupDidChangeNotificationName", object: nil)
center.addObserver(self, selector: "didChange", name: "IDEControlGroupDidChangeNotificationName", object: nil)
}

deinit {
Expand All @@ -50,8 +50,8 @@ class KZLinkedConsole: NSObject {
}

do {
try storageClass.jr_swizzleMethod(Selector("fixAttributesInRange:"), withMethod: Selector("kz_fixAttributesInRange:"))
try textViewClass.jr_swizzleMethod(Selector("mouseDown:"), withMethod: Selector("kz_mouseDown:"))
try storageClass.jr_swizzleMethod("fixAttributesInRange:", withMethod: "kz_fixAttributesInRange:")
try textViewClass.jr_swizzleMethod("mouseDown:", withMethod: "kz_mouseDown:")
}
catch {
Swift.print("Swizzling failed")
Expand Down

0 comments on commit fdb37f2

Please sign in to comment.