Why does Apple claim iPhone apps use MVC?

Apple describes the architectural design used by iPhone applications as MVC. However, almost no modern application uses MVC (as described by Trygve Reenskaug). Modern operating systems, including the iPhone OS, inherently fulfill the duties of a dispatcher. What is erroneously and commonly called MVC is actually MVP.

Why does Apple say MVC and not MVP?

+5
source share
3 answers

This, of course, is a good question, and I'm not sure I know the answer to it. I think that Apple uses the term MVC almost universally, because many Cocoa / AppKit views use data bindings to draw data directly from the model, which contradicts the MVP pattern. In the diagram below (from this article ), the MVP model shows all the data passing through the presenter - and this usually does not apply to well-built Cocoa applications.

Cocoa . , Cocoa , , . glenn_block :

MVC , , . MVP, .

alt text
(: vuscode.com)

, ! Apple, , .

+18

Cocoa , . Blockquote

.

, CS193P ( iOS7), Cocoa View. (2011, 2012, 2013, iTunesU), , . 2013 ( ), iPhone ( ): , , , . . .

, KVO ( ) . .

, "Apple MVC" == "Microsoft MVP".

"Microsoft MVC" "ASP.NET MVC 4". - " ", / -

+8

, - Apples Model-View-Controller, " . ".

, , Apple , MVC , " Cocoa". , , 2019 Apple , iPhone MVC.

: https://developer.apple.com/library/archive/documentation/General/Conceptual/DevPedia-CocoaCore/MVC.html

0
source

All Articles