Skip to content

Commit d857a20

Browse files
committed
2 parents 94b2b2c + a71c533 commit d857a20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bk1ch11p477kvo/ch13p355kvo/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class Observer {
3030

3131
var obs = Set<NSKeyValueObservation>()
3232

33-
func registerWith(_ mc:Observed) {
33+
func registerWith(_ observed:Observed) {
3434
let opts : NSKeyValueObservingOptions = [.old, .new]
35-
let ob = mc.observe(\.value, options: opts) { obj, change in
35+
let ob = observed.observe(\.value, options: opts) { obj, change in
3636
// obj is the observed object
3737
// change is an NSKeyValueObservedChange
3838
if let oldValue = change.oldValue {

0 commit comments

Comments
 (0)