[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Inserting Routine (Reference) Templates (Mac OS)

If you look up a routine (such as an operating system call) in the QuickView or THINK Reference online viewers, you can paste the template for the call into the active editor window at the text-insertion point. This technique is useful when you know the name of the call you want to add to your source code, but you are not familiar with the call parameters.
A routine template looks like this:
  SetRect(r, left, top, right, bottom);
To insert a reference template into your code, type the routine name that you want to insert, then select the name you just typed. Next, choose Insert Reference Template from the Edit Menu.
The CodeWarrior IDE searches for the routine in either QuickView (Mac OS) or THINK Reference (Mac OS), starting the required application if it is not already running. If CodeWarrior finds the routine, the IDE copies the template to the active editor window and replaces the text you selected with the template. If CodeWarrior does not find the routine template, a system beep sounds.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000