I've noticed that some mac applications do file saves through what
appears to be a write'n'swap system. One can observe something like:
/Users/name/.TemporaryItems/folders.501/TemporaryItems/(A Document
Being Saved By OmniGraffle)/test.graffle
Although at least TextEdit and probably many others do this. My
assumption is that there is some function call or series of function
calls which accomplish this. I can't tell whether this file is
written to, then replaced with the destination file, or whether this
is some hard link that is written to.
I am curious:
a) what is the high level call (if any) which generates this outcome
b) what are the low level commands which implement this functionality.
Thanks for any help you can provide!