REALBasic: TDG, Second Edition
By
Matt Neuburg
September 2001
Pages: 752
| Table of Contents
| Index
| Sample Chapters
| Colophon
Table of Contents
-
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
Return to REALBasic: TDG