Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

From Scratch

Day 6: Finished Product

Issue: 1.6 (June/July 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): 9,062
Starting Page Number: 40
RBD Number: 1621
Resource File(s):

Download Icon 1621.sit Updated: Friday, October 17, 2003 at 12:21 PM

Related Link(s): None
Known Limitations: 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 "Read Me" file and user guide, for a software release. In this, our final meeting, we will finish ShipIt!. We still must add code to open ShipIt! files, and we also need to add an About window and an icon. Once those three tasks have been accomplished ShipIt! will be a finished application, ready to ship to our customers.

Opening ShipIt! Files

In our last meeting we wrote a simple XML parser to parse ShipIt! document files. However, we didn't have time to write the code that recreates a ShipIt! document window from a ShipIt! file. We will take care of that now. You may want to refer back to our last meeting in which we designed and built our XML parser.

All of ShipIt!'s XML action happens in DocWindow's RestoreFrom method. RestoreFrom takes a BinaryStream of XML, parses the XML with SimpleXmlParser, and then uses the resulting tree of SimpleXmlNodes to extract the information necessary to rebuild the DocWindow. Recall from our previous meetings that a ShipIt! DocWindow consists of a tab panel with a Templates tab and a Variables tab. Templates and variables are lists of name/value pairs. The XML format we devised to encode that information looks like this:

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

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com