Comments on: Key-Value Coding, Key-Value Observing, and Cocoa Bindings: A Basic Tutorial. https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/ Teaching you cool stuff since 2012. Fri, 21 Jun 2019 10:32:11 +0000 hourly 1 https://wordpress.org/?v=4.9.10 By: Ankita https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1772 Thu, 30 Aug 2018 10:32:54 +0000 http://andyibanez.com/?p=113#comment-1772 Thank you so much… really helpful..

]]>
By: Andrés Ibañez https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1590 Thu, 25 May 2017 12:56:43 +0000 http://andyibanez.com/?p=113#comment-1590 You seem to be correct. I will update that ASAP.

]]>
By: Alexander https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1589 Thu, 25 May 2017 11:46:04 +0000 http://andyibanez.com/?p=113#comment-1589 It seems to be incorrect: “That is, if you are observing a variable, you will only be notified of its changes if and only if the changes take place using KVC. If you modify a variable directly using its setter you are not going to be notified of its changes”.
I recently changed property via setter and was notified about it in observer.

]]>
By: iOS Interview Questions – Site Title https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1563 Sun, 19 Feb 2017 06:12:36 +0000 http://andyibanez.com/?p=113#comment-1563 […] http://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/ […]

]]>
By: Andrés Ibañez https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1086 Fri, 08 Jan 2016 17:58:03 +0000 http://andyibanez.com/?p=113#comment-1086 KVO is only used in an object’s properties. If you want to observe changes in an SQLite database or a plain file you will need to implement a different mechanism.

The realm.io database (which is open source) notifies of changes in the database, but using the NSNotifications API. You could check it out to see how they are implementing that.

]]>
By: sundsx https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1084 Fri, 08 Jan 2016 10:07:50 +0000 http://andyibanez.com/?p=113#comment-1084 I found your tutorial so interesting and clear. I want to adopt kvo for my app. I would like observe a remote record stored in sqlite or Json file. I have a remote db queried for restful api and my problem is the sync. Actually i must load entire db in array and after changed is happen i submit query and reload all db. it is possible stored all record locally and thought observer look if record was changed and update only affected record? (lazy load). Thanks

]]>
By: sundsx https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1083 Fri, 08 Jan 2016 09:56:45 +0000 http://andyibanez.com/?p=113#comment-1083 NSInteger oldC = [[change objectForKey:NSKeyValueChangeNewKey] integerValue];

]]>
By: sundsxSandro https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-1082 Fri, 08 Jan 2016 09:37:54 +0000 http://andyibanez.com/?p=113#comment-1082 NSInteger oldC = Integer,
[change objectForKey:NSKeyValueChangeOldKey]; = Id
i see an incompatible initializer there…

]]>
By: Andrés Ibañez https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-515 Tue, 05 May 2015 22:49:20 +0000 http://andyibanez.com/?p=113#comment-515 I’ve fixed it. Thanks.

]]>
By: fnord https://www.andyibanez.com/key-value-coding-key-value-observing-cocoa-bindings-basic-tutorial/#comment-514 Tue, 05 May 2015 13:46:37 +0000 http://andyibanez.com/?p=113#comment-514 typo: in the interface section of the Character class, I think it should say NSString (instead of SString).
Sorry to nag about such a little detail though.

]]>