Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support saving to network volumes



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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Support saving to network volumes (From: Robert Cerny <email@hidden>)
 >Re: Support saving to network volumes (From: "stephen joseph butler" <email@hidden>)
 >Re: Support saving to network volumes (From: Robert Cerny <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.