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

From Scratch: A New Project

Issue: 2.1 (August/September 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): 8,930
Starting Page Number: 40
RBD Number: 2120
Resource File(s):

Download Icon 2120.sit Updated: Friday, October 17, 2003 at 12:22 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

The purpose of the "From Scratch" column is to spend more than one article building an application or, as we will do for the next three articles, a module that can be used in an application. We spent the last six articles building ShipIt!, an application that creates the documents of a software release (readme, user guide, email announcement, etc.). Now I would like to try something a little different: StocksSocket, a custom HTTPSocket control that can download stock information from the Internet. It will take us about three articles to build StockSocket and add it to a demo application I am tentatively calling Stocks. When we are finished we will have a control that could be dropped into any project that needs to get stock information from the Internet.

Stocks on the Web

It turns out that NASDAQ has a feed that provides stock information in an XML format. The feed is provided by an HTTP server and it is quite simple to get the feed using REALbasic 5's new HTTPSocket. In fact, you can try it out right now if you are connected to the Internet and you have REALbasic 5. Start a new REALbasic project. To Window1 drag a PushButton, a TCPSocket, and an EditField. Change the TCPSocket's super to HTTPSocket. In PushButton1's Action event put the following code:

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