Skip navigation.
 
mlRe: Support saving to network volumes
FROM : Alastair Houghton
DATE : Fri May 30 18:42:49 2008

On 30 May 2008, at 07:52, Robert Cerny wrote:

> Sorry for arguing with you,
> but it's cocoa question. But I could be probably more specific - is 
> there anything I need to do to support saving  to network volumes 
> using this method?
>
> - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag


Well... there was a bug in that method in that it uses 
FSReplaceObject() or FSPathReplaceObject()---I don't recall which---
and so if you've done what a lot of people with network homes do and 
symlinked your ~/Library/Caches to a location on your local hard disk, 
it barfs because the TemporaryItems folder isn't on the same drive as 
the file being saved (so the FS[Path]ReplaceObject() call fails, and 
for some reason nobody bothered to write fallback code for that case).

This was visible in Interface Builder, where "Save As" would work, but 
"Save" would fail with an error code.  I got fed up waiting for a fix 
and moved my Caches folder back again, which is slower but at least it 
works.  Maybe this is fixed now?

I don't believe that's the same problem at all though.

Kind regards,

Alastair.

--
http://alastairs-place.net

Related mailsAuthorDate
mlSupport saving to network volumes Robert Cerny May 30, 08:36
mlRe: Support saving to network volumes stephen joseph but… May 30, 08:46
mlRe: Support saving to network volumes Robert Cerny May 30, 08:52
mlRe: Support saving to network volumes Jens Alfke May 30, 17:08
mlRe: Support saving to network volumes Alastair Houghton May 30, 18:42