4 ms·
If Cocoa KVO was well done, this would not need to exist: https://github.com/facebook/KVOController https://github.com/facebook/KVOController
by i_s 11y ago
If Cocoa KVO was well done, this would not need to exist:
https://github.com/facebook/KVOController https://github.com/facebook/KVOController
- plorkyeran 11y agoKVO'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.
- arcticbull 11y agoThe key paths are still stringly-typed so maintainability is a nightmare :(