I'm reading Erica Sadun's iPhone Developer's Cookbook, and ran into a question.
She says in the book that the way to find the user's Documents directory is with the code:
but that seems slightly brittle, and dissimiliar to the normal Mac way of doing it, which would be:
NSSearchPathForDirectoriesInDomains(NSDocumentsDirectory, NSUserDomainMask, YES);
Are there any particular reasons to use one over the other?