Special

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 3.1

FEATURE

Sheet Programming

Improve Your Grasp of Asynchronous Design

Issue: 3.1 (September/October 2004)
Author: Charles Yeomans
Author Bio: Charles Yeomans is a software developer in Lexington, Kentucky.
Article Description: No description available.
Article Length (in bytes): 17,415
Starting Page Number: 27
Article Number: 3112
Related Link(s): None

Excerpt of article text...

MacOS X introduced the idea of a sheet; a dialog attached to a window that drops down to provide document-modal interaction. Dialogs in prior versions of MacOS were usually application-modal. Sheets allow better modularity in the user interface of an application. However, unlike application-modal dialogs, sheets are not blocking; that is, their appearance does not suspend the execution of application code. This takes some getting used to, and REALbasic doesn't provide a built-in framework for communication involving sheets. In this article, we'll take a look at how that communication should work, and develop a simple framework that allows us to use sheets more effectively.

Dialogs

Recall that a dialog is a window displayed to the user that requires a response. This response may be as simple as acknowledgement ('OK'), or it may require a choice ('Save', 'Cancel', 'Don't Save'). In addition, it may require other information from the user.

Prior to Mac OS X, dialogs were application-modal; that is, they prevented the user from performing any other action in the application, and sometimes other applications as well, until a response to the dialog was given.

Sheets

...End of Excerpt. Please purchase the magazine to read the full article.