A Window To Data
How to design a data-oriented window view
Issue: 15.2 (March/April 2017)
Author: JC Cruz
Author Bio: JC is a freelance writer based in British Columbia. He contributes regularly to MacTech Magazine and Dr Dobb's Journal. Away from the writing pile, JC spends quality time with his nephew, as a proper uncle should.
Article Description: No description available.
Article Length (in bytes): 35,477
Starting Page Number: 46
Article Number: 15206
project15206.zip Updated: 2017-03-01 11:14:01
Related Link(s): None
Excerpt of article text...
User-patients interact with their health data through a window view. But the generic
Windowclass needs certain features in order to work in a data-oriented workflow. Today's article shows how I design and implement a custom window view.
First, I revisit the MVC paradigm and show how the window view fits into that paradigm. Then I dissect the
Windowclass, point out those key issues I plan to address.
Next, I present three
Windowsubclasses. I explain the role of each subclass, describe its properties and methods, describe how I implemented the underlying code. And I demonstrate how I use each subclass in the demo project FooHealth.
Readers need a working knowledge of REALbasic and object-oriented design. A new version of the demo project, FooHealth, is available from the magazine's website.
The MVC Paradigm Revisited
I designed the demo project FooHealth using a model-view-controller (MVC) paradigm. Under this paradigm, I tried to divide the project code into three groups (Figure 1). Each group is focused on one general task and they do not interfere with one another.
...End of Excerpt. Please purchase the magazine to read the full article.