We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94b2b2c + a71c533 commit d857a20Copy full SHA for d857a20
bk1ch11p477kvo/ch13p355kvo/AppDelegate.swift
@@ -30,9 +30,9 @@ class Observer {
30
31
var obs = Set<NSKeyValueObservation>()
32
33
- func registerWith(_ mc:Observed) {
+ func registerWith(_ observed:Observed) {
34
let opts : NSKeyValueObservingOptions = [.old, .new]
35
- let ob = mc.observe(\.value, options: opts) { obj, change in
+ let ob = observed.observe(\.value, options: opts) { obj, change in
36
// obj is the observed object
37
// change is an NSKeyValueObservedChange
38
if let oldValue = change.oldValue {
0 commit comments