• 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: NSDocument package saving invalidates wrapper? Options?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument package saving invalidates wrapper? Options?


  • Subject: Re: NSDocument package saving invalidates wrapper? Options?
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 04 Sep 2012 12:31:10 +0100

On 2 Sep 2012, at 21:29, Markus Spoettl <email@hidden> wrote:

> On 9/2/12 10:12 PM, Mike Abdullah wrote:
>>> OK, thanks a lot for that tip. Even though I overwrote -setFileURL: for
>>> some other task it never occurred to me to look if that's a better place.
>>> Feels very natural actually. I find it extremely odd that the requirement
>>> to update file wrapper isn't documented anywhere.
>>
>> It seems the doc system assumes you generate the file wrapper afresh each
>> save.
>
> Actually the Document Programming guide goes into details about file wrappers and talks about keeping them for faster IO:
>
> http://developer.apple.com/library/mac/documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/AdvancedTopics/AdvancedTopics.html#//apple_ref/doc/uid/TP40011179-CH7-SW10

Oh good point. I've filed a note asking the docs to be updated.

I suspect in their example, you might actually be OK. Provided all file wrappers start out life in-memory (inefficient I know), I don't believe they ever get purged to disk, so can always be written. When writing, hardlinks are used for efficiency, rather than because that's where the data is located.


_______________________________________________

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: 
 >Re: NSDocument package saving invalidates wrapper? Options? (From: Mike Abdullah <email@hidden>)
 >Re: NSDocument package saving invalidates wrapper? Options? (From: Markus Spoettl <email@hidden>)
 >Re: NSDocument package saving invalidates wrapper? Options? (From: Markus Spoettl <email@hidden>)
 >Re: NSDocument package saving invalidates wrapper? Options? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Figuring out which NSView to send an event to
  • Next by Date: Re: Figuring out which NSView to send an event to
  • Previous by thread: Re: NSDocument package saving invalidates wrapper? Options?
  • Next by thread: Re: Network and DarkWake
  • Index(es):
    • Date
    • Thread