[Newbies] what's a model?
wgsilkie at ihug.co.nz
Thu Dec 11 04:38:18 UTC 2008
Oh yes, I've read Squeak By Example and played around with Morphic a bit
(although haven't created anything useful with it), I just need to figure out
how to write a class that I can use as a "model" with Morphs such as
tjohnson at iwu.edu wrote:
> A "model" is the logic of your program. Generally, it is the abstract concept that your UI
> attempts to present to the user. For example, if you are creating a personal finance
> program, your model might consist of objects like BankAccount and Transaction, whereas
> your UI might consist of BankAccountView and TransactionView.
> "Model" is one third of the time-tested concept of Model-View-Controller, which is a
> "pattern" for creating programs with user interfaces. If you search for MVC on the web, you
> should find some pretty useful information. Generally the theory behind MVC is that your
> application's logic (or model) should be separate from its interface / presentation (view). The
> controller would be some "glue" which mediates between the model and the view, but often
> the controller is sort of melded into the view these days.
> Squeak does include a class called Model, which is abstract and not much used these days.
> Best not be distracted by it.
> Hope that helps! Have you looked at some of the great Morphic tutorials on the web? I
> found the chapter in Squeak By Example very informative.
More information about the Beginners