I make a Drag&Drop feature. And my NSURL returns file's id instead of file's path.
Code:
fileURL = [NSURL URLFromPasteboard:[sender draggingPasteboard]];
What I receice:
file:///.file/id=6571367.686377
What I want to receive:
/Users/Desktop/someFile.png
How to fix this?
Thank you.
it's an NSURL object, so it's just
filePath = [fileURL path];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With