• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Support saving to network volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support saving to network volumes


  • Subject: Re: Support saving to network volumes
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 30 May 2008 08:08:37 -0700


On 29 May '08, at 11:52 PM, Robert Cerny wrote:

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

That'll work fine. Be sure to use the atomic mode, which is safer in the case where another user is accessing the old file (it moves the old file aside instead of overwriting it in place.)


Saving to a network volume is mostly the same as a local filesystem. It's when you get to issues like file locking and permissions that there can be differences.

I don't see how this relates to Photoshop, though. It's a Carbon app and uses a different set of APIs for saving. It might also be using optimizations/tricks such as incrementally updating portions of the file.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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:

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>)

  • Prev by Date: Re: sorting an NSTableView
  • Next by Date: Re: NSURLConnection sendSynchronousRequest crash
  • Previous by thread: Re: Support saving to network volumes
  • Next by thread: Re: Support saving to network volumes
  • Index(es):
    • Date
    • Thread