-
Fundamentals
-
Chapter 1 The Workspace
- The Project Window
- Editing Windows
- Adding Functionality
- How the Three Editors Relate
- Testing Without Building
- Online Help
- Shortcuts
-
Chapter 2 The Basic Language
- Lines and Commands
- Variables and Constants
- Subroutines
- Regulating Flow
- Arrays
- Recursion
- Comments
-
Chapter 3 Objects, Classes, and Instances
- Messages and Dot Notation
- Object Design Philosophy
- Classes and Instances
- Anatomy of a Class
- An Instance Is Born
- Referring to Instances
- The Truth About Controls
- Control Clones and Control Arrays
- Being Careful with Instance References
- Destruction of Instances
-
Chapter 4 Class Relationships and Class Features
- New Classes and Inheritance
- Casting
- Overriding
- Class Interfaces
- Events and New Events
- The Class Hierarchy
- Global Members
- Advanced Class Features
- Example Classes
-
Chapter 5 Datatypes
- Booleans
- Strings
- Numbers
- Variants
- Collections
- Dates
- Colors
- Memoryblocks
- Threads
-
Chapter 6 Menus
- Menu Overview
- Editing Menus
- Special Menu Items
- The Menu-Enabling Moment
- Menu Item Functionality
- Dynamic Menus
- Menu Examples
-
Chapter 7 The Architecture of an Application
- Three Pillars of Zen
- The Application Subclass
- Order of Events
-
Chapter 8 Debugging and Building
- Compile Errors
- Exceptions
- The Debugger
- Building
-
-
User Interface
-
Chapter 9 Windows
- Window Types
- Opening and Closing, Showing and Hiding
- Title, Position, and Size
- Events
- Drawing in a Window
-
Chapter 10 Abstract Control Classes
- Lifetime Events
- Appearance
- Position and Size
- Mouse Movement Events
- Redrawing
-
Chapter 11 Canvases
- Canvas Events, Properties, and Methods
- Picture Class
- Graphics Class
- Backdrop Property
- Fun With Graphics Properties
- Canvas Graphics Property
- Transparency and Icons
- Speed
- Interaction with Other Objects
-
Chapter 12 Buttons and Static Texts
- PushButton
- BevelButton
- Placard
- LittleArrows
- CheckBox
- RadioButton and GroupBox
- DisclosureTriangle
- StaticText
- Custom Buttons
-
Chapter 13 EditFields
- Types of EditField
- EditField Events, Properties, and Methods
- The Focus
- Manipulating Text and Styles
- Reacting to User Input
- Drawing Styled Text
- Miscellaneous Tips
-
Chapter 14 ListBoxes
- ListBox Features
- ListBox Events, Properties, and Methods
- Basic ListBox Techniques
- Hierarchical ListBoxes
- Other ListBox Features
-
Chapter 15 Progress Bars, Sliders, and Scrollbars
- ProgressBar
- Slider
- Scrollbar
-
Chapter 16 Shapes and Decorations
- Line
- Shapes
- Separator
- ImageWell
- ChasingArrows
- PopupArrow
-
Chapter 17 Menus in Windows
- PopupMenu
- BevelButton
- ContextualMenu
- Alternatives
-
Chapter 18 TabPanels
- Preparation
- Properties and Events
- Usage
-
Chapter 19 Keyboard
- Keyboard Communication
- Keyboard Object
- UserCancelled
-
Chapter 20 Mouse and Cursor
- Mouse Communication
- Polling the Mouse
- Balloon Help
- Cursor
-
-
Reaching Out
-
Chapter 21 Files
- Getting a FolderItem
- File Types
- File Properties and File Actions
- Arbitrary Data: Binary Streams
- Sequential Data: Text Streams
- Resources
- Predefined Data Formats
-
Chapter 22 Databases
- Database Files and Classes
- Schemas
- Displaying Data
- Other Data Sources
-
Chapter 23 Clipboard
- Clipboard Class
- Usage
-
Chapter 24 Drag-and-Drop
- Beginning a Drag
- Receiving a Drop
- Finder Drop
- Internal Drag-and-Drop
- Limitations and Workarounds
-
Chapter 25 Time
- Ticks and Microseconds
- Timers
- Yielding Time
-
Chapter 26 Sound
- Beep
- Sound Object
- MIDI Notes
-
Chapter 27 Movies
- Movie Class
- MoviePlayer
- Movie Usage
- Making Movies
- Analyzing Movies
-
Chapter 28 Animation
- Configuring the SpriteSurface
- Basic Sprite Techniques
- Basic Background Techniques
- Improving the Classes
- Intelligent Sprite Behavior
- Responding to Keys
- Intelligent Collisions
-
Chapter 29 Printing
- Page Setup
- Proceeding To Print
- Measurement Problems
- Printing Text
-
Chapter 30 TCP/IP Communications
- Socket Properties, Methods, and Events
- Client
- Server
-
Chapter 31 Interapplication Communications
- Sending Apple Events
- Receiving Apple Events
- Apple Event Classes, Properties, and Methods
- Apple Event Inadequacies
- AppleScripts
- Shell
-
Chapter 32 Language Extensions
- Direct Toolbox Calls
- XCMDs
- Shared Libraries
- Plug-ins
-
-
Appendix A Growing an Application
-
Principles of Approach
-
An Example Project: Tic-Tac-Toe
-
Exercises
-
-
Colophon
- Title:
- REALBasic: TDG, Second Edition
- By:
- Matt Neuburg
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- September 2001
- Pages:
- 752
- Print ISBN:
- 978-0-596-00177-3
- | ISBN 10:
- 0-596-00177-0
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of REALbasic: The Definitive Guide is a greyhound. Greyhounds were first bred approximately 3,000 years ago in Egypt, making them one of the oldest breeds of domesticated dogs. Mummified greyhounds have been found in ancient Egyptian tombs. They were bred as hunting dogs. They hunt by sight, not smell, and have the keenest eyesight of all dogs. Their hunting strategy is to outrun their prey, a task they easily accomplish. Greyhounds are the fastest breed of dog, reaching speeds of up to 45 miles per hour. In recent times, this speed has led to the sport of greyhound racing. Numerous societies promote the adoption of retired racing greyhounds.
The distinctive silhouettes formed by their graceful, virtually fat-free bodies, their even temperaments, and their power and speed have long made greyhounds favorites of royalty. At one time in England it was against the law for "commoners" to own greyhounds. Greyhounds have also made their mark in art and literature. There are references to greyhounds in the Bible and in classical literature from Homer to Shakespeare. Mary Brady was the production editor and Norma Emory was the proofreader for REALbasic: The Definitive Guide. Darren Kelly, Claire Cloutier, and Linley Dolby provided quality control. Kimo Carter provided production support. Matt Neuburg wrote the index.
Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original engraving from The Illustrated Natural History: Mammalia. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Melanie Wang designed the interior layout, based on a series design by David Futato. The design was implemented by Neil Walls using tools created by Mike Sierra. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Clairemarie Fisher O'Leary.
Whenever possible, our books use a durable and flexible lay-flat binding. If the page count exceeds this binding's limit, perfect binding is used.
