Are there any standard objects or functions to parse an NSURL\'s components? Clearly I could write one, but why re-invent the wheel?
[NSURL path] will
[NSURL path]
If you do decide to write one (I'm not sure there are existing methods of getting the components you want), you might want to use NSString's componentsSeparatedByString.
componentsSeparatedByString