Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 15.2 ('Xojo Power Tricks')
Instant purchase and download via GumRoad!


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
Resource File(s):

Download Icon 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 Window class 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 Window class, point out those key issues I plan to address.

Next, I present three Window subclasses. 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.