[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Touching and Untouching Files

Use the Touch column shown in Figure 3.2 to mark files that need compilation. The CodeWarrior IDE does not always recognize file changes and might not automatically re-compile all files in certain situations. In such cases, you can use the Touch column.

You can use one of the following techniques to ensure that the IDE compiles a file:


NOTE

If the file did not change since the IDE last compiled it, the first command in the Interface pop-up menu is Touch. After you choose the Touch command, the IDE compiles the file the next time it builds your project. If the file changed since the IDE last compiled it, the Untouch command appears instead of the Touch command.

To unmark files so that the IDE does not compile them during the next build, use one of the following techniques:


Synchronizing modification dates

To update the modification dates stored in your project file, click the check-mark icon at the top of the Touch column. Alternatively, choose Project > Synchronize Modification Dates.

After you click the icon or choose the menu command, the IDE checks the modification date of each file in the project. If the file was modified since it was last compiled, the IDE marks it for re-compilation. This strategy re-synchronizes the state of the files in the project, depending on their modification dates.

Synchronizing modification dates is useful if you modify files outside of the CodeWarrior IDE, perhaps by a third-party editor that does not notify the CodeWarrior IDE after modifying a file.


NOTE

(Mac OS) Some third-party editors use AppleEvents to inform the IDE of a file modification. These editors include BBEdit, Object Master, and Alpha. You do not need to use the Synchronize Modification Dates command if you use one of these external editors.

[ 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