Beginning REALbasic.pdf

(18077 KB) Pobierz
374552232 UNPDF
374552232.003.png
Beginning REALbasic
From Novice to Professional
■■■
Jerry Lee Ford, Jr.
374552232.004.png 374552232.005.png
Beginning REALbasic: From Novice to Professional
Copyright © 2006 by Jerry Lee Ford, Jr.
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-634-0
ISBN-10 (pbk): 1-59059-634-X
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Lead Editor: Chris Mills
Technical Reviewer: Allan Kent
Editorial Board: Steve Anglin, Ewan Buckingham, Gary Cornell, Jason Gilmore, Jonathan Gennick,
Jonathan Hassell, James Huddleston, Chris Mills, Matthew Moodie, Dominic Shakeshaft, Jim Sumser,
Keir Thomas, Matt Wade
Project Manager: Richard Dal Porto
Copy Edit Manager: Nicole LeClerc
Copy Editor: Marcia Baker
Assistant Production Director: Kari Brooks-Copony
Production Editor: Lori Bring
Compositor: Pat Christenson
Proofreader: Linda Seifert
Indexer: Broccoli Information Management
Artist: April Milne
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com , or
visit http://www.springeronline.com .
For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA
94710. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com , or visit http://www.apress.com .
The information in this book is distributed on an “as is” basis, without warranty. Although every precaution
has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to
any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly
by the information contained in this work.
The source code for this book is available on the accompanying CD. Any corrections to code and errata are
posted for download/viewing at http://www.apress.com . Just search for the book by title, author, or ISBN,
in the search bar on our homepage.
374552232.006.png
To Alexander, William, Molly, and Mary.
374552232.001.png
Contents at a Glance
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxii
PART 1
■ ■ ■
Introducing REALbasic
CHAPTER 1
An Introduction to REALbasic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CHAPTER 2
Navigating the REALbasic Integrated Development
Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
PART 2
■ ■ ■
Learning How to
Program with REALbasic
CHAPTER 3
Creating an Application’s User Interface . . . . . . . . . . . . . . . . . . . . . . . 67
CHAPTER 4
Working with REALbasic Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
CHAPTER 5
Storing and Retrieving Application Data . . . . . . . . . . . . . . . . . . . . . . 135
CHAPTER 6
Making Decisions with Conditional Logic . . . . . . . . . . . . . . . . . . . . . 163
CHAPTER 7
Iterative Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
CHAPTER 8
Object-Oriented Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
PART 3
■ ■ ■
Advanced Topics
CHAPTER 9 Processing Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
CHAPTER 10 Working with Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
CHAPTER 11 Working with Graphics and Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
CHAPTER 12 Debugging REALbasic Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
iv
374552232.002.png
Zgłoś jeśli naruszono regulamin