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.5

COLUMN

Day 5: ShipIt! Files, Part 2

Issue: 1.5 (April/May 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): 13,121
Starting Page Number: 40
Article Number: 1521
Resource File(s):

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

Related Web Link(s):

http://www.w3.org/TR/DOM-Level-2-Core/

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 open ShipIt! documents. Our primary task will be to parse the XML file format we created in our last meeting.

We will not have time to cover every detail of our parser implementation. To see all of the details, please download and examine the project that accompanies this article. It can be found on the REALbasic Developer website.

Opening Documents

There are at least three ways to open a document: double-click on it, drop it on an application's icon, or open it from within an application using the Open menu item. We will deal first with the Open menu item case.

We will assume that we have already added an Open menu item to the File menu. The Open command should be enabled all the time, so we will enable it in our App class' EnableMenuItems event. We need to add a FileOpen menu handler to the App class as well. The code for the FileOpen menu handler is quite simple:

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