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 1.4

COLUMN

Day 4: Saving Files

Issue: 1.4 (February/March 2003)
Author: William Leshner
Author Bio: William Leshner has been programming for twenty years and programming Macs for ten. He has spent a good deal of the last several years building REALbasic applications, including the now famous ResPloder.
Article Description: No description available.
Article Length (in bytes): 10,965
Starting Page Number: 40
Article Number: 1421
Resource File(s):

Download Icon 1421.zip Updated: 2013-03-11 19:07:56

Related Link(s): None

Excerpt of article text...

We have been holding a series of staff meetings to design and build an application called ShipIt! from scratch in REALbasic. ShipIt! creates release documents, such as the readme and product documentation, for a software release. In today's meeting we will write the code to save ShipIt! documents as files. Note that we will not have time to cover every detail of our implementation. To see all of the details, please download the project, which contains commented code.

Review

ShipIt! creates release documents from templates. Each template contains variables, the values for which are provided by the user. ShipIt! generates one document for each template by substituting values for each variable in a template. A ShipIt! document window contains a tab panel with two tabs: variables and templates. Each tab contains a one-column ItemListBox on the left and an EditField on the right. Selecting an item in the ItemListBox reveals that item's value in the EditField.

File Types

Every Macintosh file has a type, a creator, an icon, and contents. The type and creator are four-byte identifiers that identify the application that created the file. A file's icon graphically associates a file with an application in the Finder. The file's contents are a snapshot of the document from which the file was created.

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