Friday, March 2, 2012

Key-Value Observing Done Right: Take 2

Gwynne Raskind:

In Mike Ash’s article in 2008, circa Leopard, he described three major issues. Of those, only one has been solved since (the missing context parameter to observation removal). The other two, a lack of custom selectors and the uselessness of the context pointer, remain unsolved, and more issues have arisen since…

[…]

It is my personal opinion that KVO received so little attention because it was originally implemented as nothing more than a piece of the puzzle behind Cooca bindings. Cocoa bindings have been, in the opinion of many (including myself), a dismal failure in their intended purpose of making UI easy to wire up to code.

What follows is much cleverness, but this is really something that Apple should address in Cocoa itself.

Comments RSS · Twitter

Leave a Comment