Reputation: 29886
I can currently get a NSURL from the pasteboard, but it returns the following
file://localhost/Users/Mac/Desktop/SomePath/
How can I get this to return
/Users/Mac/Desktop/SomePath/
Upvotes: 0
Views: 475
Reputation: 7272
NSString *path = [someURL path];
Upvotes: 2
Reputation: 2970
NSString* filePath = [nsUrlObject path];
should do it.