Important: The information in this document is obsolete and should not be used for new development.
Xcode indicates which files you’ve modified by highlighting their icons in gray in the Groups & Files list, detail view, and in the pop-up menu of recently viewed files. You can save your changes in a number of ways:
To save changes to the current file, choose File > Save.
To save a copy of a file, choose File > Save As. Xcode saves a copy of the file under the name you specify. If the file is part of your project, Xcode also changes the file reference in your project to refer to the copy.
To make a backup of a file, hold the Option key and choose File > Save a Copy As. Xcode saves a copy of the file under the name you specify, but does not modify the file reference in your project, if one exists.
To save all open files, choose File > Save All.
Xcode can also be configured to automatically save all changed files before beginning a build. To specify whether files are saved automatically when you build a target:
Choose Xcode > Preferences and click Building.
In the “For Unsaved Files” menu, choose Ask Before Building, Always Save, Never Save, or Cancel Build.
If you don’t have write permission for a file, Xcode warns you when you try to edit it. You can choose to edit such files, but you can save your changes only if you have write permission for the containing folder. In this case, you can choose whether Xcode changes the file’s permissions to make it writable.
To have Xcode change the file’s permissions, choose Xcode > Preferences, click Text Editing, and select “Save files as writable” in Save Options. Otherwise, Xcode preserves the file’s current permissions.
Last updated: 2006-11-07