error code -43???
error code -43???
- Subject: error code -43???
- From: Jesse Grosjean <email@hidden>
- Date: Thu, 8 Nov 2001 17:20:10 -0500
I'm still working on dragging and dropping files from my app to the
finder. My basic strategy is:
1. Create temp file using:
[myNSData writeToFile: tempFilePath atomically:YES];
2. When a drag starts in my app I do this:
[self dragFile: tempFilePath
fromRect:[self bounds]
slideBack:YES
event:theEvent];
3. When some stage changes in my app i delete my temp file and write a
new one using:
[[NSFileManager defaultManager] removeFileAtPath:tempFilePath
handler:self];
[myNSData writeToFile:path atomically:YES];
Now this all works fine the first time around. I can drag and drop on
the finder, file gets copied and all works. And i can do this as many
times as i want, and everything keeps working.
But when state changes in my app and i generate a new temp file for
dragging I get problems. It seems like the old temp file is deleted ok,
and the new one written ok. I say this because i can navigate to this
temp file with the finder, open it, and all seems in order. But when i
try to drag the file from my application I get the following error when
i try to drop it on the finder:
"The operation cannot be completed because one or more required items
cannot be found. (Error code -43)"
Jesse