News for hackers. Stuff that matters.
Re:Apple previews Live Speech, Personal Voice, and more new ... by alexjm on Tuesday May 16, 2023 @01:29PM (#35965045)
In the Apple documentation for MVC, "controller" refers to a class that sits between the model and view. When data changes in the model, it updates the view; and when the user interacts with the view, it passes events to the model.

https://developer.apple.com/library/archive/documentation/Ge...

Elsewhere, the documentation contrasts the Cocoa and Smalltalk versions of MVC where all three pieces communicate directly:

https://developer.apple.com/library/archive/documentation/Co...

Like you said, this separation means you can "drive" the same model through different UIs. That's one of the things I always thought was cool about AppleScript support -- the app exposes a different interface to the same model.

There are no comments on this comment yet.