4 ms·
MVC - MVC is separated, Models can notify Views. I don't think the ability for models to directly notify views can be considered a strict requirement. NextStep
by pavlov 15y ago
MVC - MVC is separated, Models can notify Views.
I don't think the ability for models to directly notify views can be considered a strict requirement. NextStep/Cocoa followed the MVC pattern closely without having this ability for a long time. (It was added as "key-value observing" in Mac OS X 10.3.)
Without direct notifications from models to views, it's up to the controllers to notify each other of model updates. Personally I find this pattern preferable to having models doing uninhibited notification broadcasting on their own.