Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If Cocoa KVO was well done, this would not need to exist:

https://github.com/facebook/KVOController



KVO's API could be a lot better (even just making it target-action would be a huge improvement), but at the time it was created you couldn't do a block based API (since they didn't exist yet), and thread-safe automatic deregistration without zeroing weak pointers would be very complex and have a lot of overhead.


The key paths are still stringly-typed so maintainability is a nightmare :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: