Mops and QuickEdit Chapter 1 Contents

Chapter 1
Mops and Quick Edit
The Mops Menu Bar The Apple menu
The File Menu
The Edit Menu
The List Menu
The Show Menu
The Utilities Menu
Communication with Quick Edit
Communication with Quick Edit

Mops and Quick Edit send Apple Events to each other, with a number of benefits. Of course, to use these features, both Mops and QE must be running. If this isn't so, or if you're running an earlier system which doesn't support Apple events, these commands will be ignored.

  1. If an error occurs during loading a file, Mops sends QE an Apple event asking it to open the source file at the error line.
  2. The Mops command "edit someFile" will ask QE to open the given file.
  3. The Mops command “openSource someWord” will ask QE to open the source file containing the definition of someWord. If there's a log file, QE will put the cursor to the start of the definition. If there isn't, QE will search to the first occurrence of "someWord" in the file (which will probably be at the start of the definition anyway, or maybe in a comment just before).

In QE, there is now a "Mops" menu with a number of commands:

  1. Load
  2. Save and load (command-K)
  3. Clear Stack (command-0). Also now available in Mops as command-0.
  4. Open Source (command-=). You highlight a word, "someWord" say, then choose this command, and QE asks Mops to execute “OpenSource someWord” as described above.
  5. Clear Window (command--). Clears the Mops window. Also available in Mops as command-2.
  6. Glossary (command-Y). Opens QE's glossary of Mops words and classes. The word under or to the left of the cursor (if any) is searched for automatically.
  7. Edit file (command-E). You highlight a word, then choose this command. If Mops is running, it will open the file with that name (if it exists).
Compile.png If you get the "Error # -13 undefined word" error then you forgot to compile the definition. Select the text from the opening colon to the closing semicolon, and press «enter» to compile the word.

 

Previous Chapter Contents Next Chapter
This page online:  http://PowerMops.com/MopsManual/Reference/Chapter1.html