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. Your "what if" scenario graphically revealed
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. 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. Picking two directories for comparison
After initialization, you see a different view of the folders' contents:
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. Your directory merge choices
Let's see if that worked:
Figure 19. Creating a new directory from two merged directories
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
Easy way to add "Compare Files" to finder contextual menu
2010-05-19 07:45:42 aaronjlwebb [View]
2006-05-25 20:49:12 hellokopter [View]
XCODE made easy!!
2006-05-18 10:42:59 stefanburt [View]
2006-05-06 09:22:14 rayola [View]
2006-05-03 01:24:56 vermeer [View]