开发者

MVC vs KVO in implementation

开发者 https://www.devze.com 2023-02-09 19:32 出处:网络
I am a beginner in the realm of cocoa and don\'t understand when you should choose key value observing over the Mode开发者_StackOverflow中文版l View Controller. My question: Can everything that is don

I am a beginner in the realm of cocoa and don't understand when you should choose key value observing over the Mode开发者_StackOverflow中文版l View Controller. My question: Can everything that is done with a MVC scheme also be implemented with KVO? Is it true as well that you could replace any KVO with a similar MVC?

Thanks


They are not mutually exclusive. MVC is a general design pattern and KVO is a specific Cocoa technology which you can use in MVC applications (and other apps too).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号