i make drag&drop feature. , nsurl returns file's id instead of file's path.
code:
fileurl = [nsurl urlfrompasteboard:[sender draggingpasteboard]]; what receice:
file:///.file/id=6571367.686377
what want receive:
/users/desktop/somefile.png
how fix this?
thank you.
it's nsurl object, it's just
filepath = [fileurl path];
Comments
Post a Comment