I am making a drag & drop function. And my NSURL returns the file identifier instead of the file path.
code:
fileURL = [NSURL URLFromPasteboard:[sender draggingPasteboard]];
What I get:
File: ///.file/id=6571367.686377
What I want to get:
/Users/Desktop/someFile.png
How to fix it?
Thanks.
source share