• 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: Updating Content of NSFileWrapper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating Content of NSFileWrapper


  • Subject: Re: Updating Content of NSFileWrapper
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 16 Sep 2014 02:33:38 +0000

On Sep 15, 2014, at 19:12 , Charles Jenkins <email@hidden> wrote:

>        // What the heck do I do here? How to I update fw's contents?

You do the “obvious” thing — remove the existing file wrapper and create a new one.

The clearest logic for this would be:

	If this file’s content is modified, remove any existing file wrapper.
	Then, if there’s no file wrapper, create the file data and create the file wrapper.

So there’s no real difference between the create and the update case.



_______________________________________________

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: 
 >Updating Content of NSFileWrapper (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Updating Content of NSFileWrapper
  • Next by Date: Re: Want NSTableView NSOutlineView to load lazy like iOS?
  • Previous by thread: Updating Content of NSFileWrapper
  • Next by thread: Still need help with Services. Is there sample code?
  • Index(es):
    • Date
    • Thread