Cocoa – How to chop off file:// from NSURL

cocoansurlpath

I have an NSURL.
It is file://localhost/Users/Me/File.xml

I want an NSString that is /Users/Me/File.xml

Is there some nice function I can use to do this?

Best Answer

NSURL path method sounds like it does what you want.