macdevcenter.com
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button

Xcode for the Rest of Us, Part II
Pages: 1, 2, 3

The Hidden "What If"

But wait--there's more (cue the Ginsu knives)! Pull up the slider from the bottom of the screen. What do you see? It reveals your "what if" scenario, should you take the highlighted difference and apply it to your original text file!

figure 14

Figure 14. Your "what if" scenario graphically revealed

Merging Directories

If we can do this with individual files, what about directories (UNIX-speak for folders)? Of course! Here are two folders with a few differences between the two:

figure 15

Figure 15. Two directories with a few differences

Let's see how we can compare the directories quickly. Do what you did before--drag and drop each directory into its own well, and click Compare.

figure 16

Figure 16. Picking two directories for comparison

After initialization, you see a different view of the folders' contents:

figure 17

Figure 17. Folder content comparison

You can filter out what is identical from one to the other, or show which files are different from one to the other (the Added/Deleted checkbox). You can choose to combine, remove or unmark files using the drop-down menu. I will chose to combine the files by highlighting them, and save all of the files with a new name:

figure 18

Figure 18. Your directory merge choices

Let's see if that worked:

figure 19

Figure 19. Creating a new directory from two merged directories

We Rock!

figure 20

Figure 20. The merged directories as a new directory

Go ahead and get all those files merged and then put them in new merged directories--then go home to a great dinner. First, check your email. It's your boss again, asking if you make certain "things" happen when people launch Safari or other applications. You think, "Is he nuts?" He might be, but you can make applications sit up and beg--with Property List Editor. Tune in next time for more fun with Xcode tools.

Shelley Weiner is president of Business Rules, Inc., a technical training and Macintosh consultancy located in the beautiful Hudson Valley of New York State. She is an Apple Certified Trainer, an Apple Certified Systems Administrator, and a member of the Apple Consultants Network.


Return to the Mac DevCenter