Information Technology Reference
In-Depth Information
Using Snapshots
A snapshot is a simple semi-automated solution for source control. You can take a snapshot of your project at
any point with the File⇒Create Snapshot menu option in the main Xcode menu. A snapshot records the state of
the files in the project, and snapshots are listed in the Organizer. You can restore a project to an earlier state by
restoring the snapshot.
As an example, create a new OS X Cocoa application following these steps:
1. Save your new OS X Cocoa application as SnapshotExample.
2. Use the Create Snapshot option to save a snapshot of its initial state.
Figure 14.2 shows the new snapshot dialog box.
3. You can give each snapshot a title and an optional description.
NOTE
In a real project, you don't usually need to save the initial default state of the application, because you can always
re-create the default as a new project. But occasionally, it can be useful to keep the initial state as a starting point
when you're experimenting.
4. Add some code.
For an initial demonstration, it can be as simple as a single comment line.
5. Create another snapshot, and give it a different title and description.
6. Open the Organizer window.
You open the Organizer window by selecting the filing cabinet icon near the top right of the Xcode window.
Figure 14.2
Creating a new snapshot, with a name and description
 
Search WWH ::




Custom Search