← Programmer’s Guide to MPW, Volume I

Programmer’s Guide to MPW, Volume I

From the originals

14 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 11

xii ~ Contents Invoking a Commando Dialog 209 Calling a Commando with Option-Enter 210 Calling a Commando with Option-; 211 Calling a Commando with the Commando Command 212 The SetFile Commando 213 The Commando Commando 213 Executing Commando Dialogs from the Menu 214 Editing a Commando 214 Creating Your Own Commands 215 A Modified UserStartup Script 216 Conclusion 219 4. The MPW Special Character Set 221 The MPW Special Character Set 222 A Notorious Character 222 Blank Characters 224 The Comment Character # 227 The Line-Continuation Character() 228 The Escape Character a 229 Selection Expressions 230 Delimiters 234 Regular Expression Operators 244 File Name Generation Operators 250 Arithmetic and Logical Operators 253 Special Characters Used in Makefiles 260 Using Special Characters in Scripts 261 The Special Characters at a Glance 264 Conclusion 275 ~ PART TWO: Writing an Application 277 5. Event-Driven Programming 279 MPW and the Event Manager 279 How Applications Detect Events 280 Calling the Toolbox Event Manager 281 How Applications Process Events 281

Reading notes: Source appears to be a table of contents with chapter and section headings only; no headline, product, price, or date fields are present.

Languages
English
PDF page 12

~ Contents xiii The gHas WaitN extEvent Variable 283 Using a CASE Statement in a Main Event Loop 283 The SystemTask Call 283 WaitNextEvent and the System 7 Finder 284 The Event Queue 284 The Structure of an Event Queue Record 285 Syntax of GetNextEvent and WaitNextEvent 285 Calling WaitNextEvent and GetNextEvent 286 The Event Record 286 Activate and Update Events 287 Mouse Events 288 Keyboard Events 288 Event Management in a Nutshell 288 Kinds of Events 288 Activate Events 288 Mouse events 289 Keyboard Events 290 Disk Events 297 ·Auto-key Events 297 Update Events 297 Null Events 298 Other kinds of Events 298 Event Priorities 299 Event Records 299 What an Event Record Contains 300 Decoding the Event Record 300 The Event Code 300 The Event Message 301 Modifier Flags 304 The Event Mask 306 The WaitNextEvent Call 308 Writing an Event Loop 309 Using the gHasWaitNextEvent Variable 311 Setting gHasWaitNextEvent 311 Using Gestalt 312 Gestalt Manager Calls 313

Reading notes: Source appears to be a table of contents fragment with no advertised products, prices, or dates Leading and trailing lines may be truncated or damaged at the page boundary

Languages
English