• 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 subclass, File Wrappers & Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument subclass, File Wrappers & Core Data


  • Subject: Re: NSDocument subclass, File Wrappers & Core Data
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 18 Dec 2006 13:18:25 -0800


On Dec 17, 2006, at 8:18 PM, I. Savant wrote:
On Dec 17, 2006, at 9:57 PM, mmalc crawford wrote:
On Dec 6, 2006, at 7:14 PM, Matthew Johnson wrote:
What I am thinking of is subclassing NSDocument and managing the persistence stack myself and setting it up to use a store inside a file wrapper.
No, that won't work.
I'm interested in this myself -- can you elaborate as to why that approach wouldn't work?

There is no API to inform the persistent store coordinator if the file wrapper (and therefore the store) changes locations on disk while the document is open. Consequently, things that you would expect to work like NSDocument-style atomic saves and reacting to moving the file in Finder are not possible.


mmalc
(With thanks to RL-S.)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSDocument subclass, File Wrappers & Core Data
      • From: Matthew Johnson <email@hidden>
References: 
 >NSDocument subclass, File Wrappers & Core Data (From: Matthew Johnson <email@hidden>)
 >Re: NSDocument subclass, File Wrappers & Core Data (From: mmalc crawford <email@hidden>)
 >Re: NSDocument subclass, File Wrappers & Core Data (From: Matthew Johnson <email@hidden>)
 >Re: NSDocument subclass, File Wrappers & Core Data (From: mmalc crawford <email@hidden>)
 >Re: NSDocument subclass, File Wrappers & Core Data (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: PDFKit: PDF version and page labels
  • Next by Date: Re: Best dot-based proofers for SWOP
  • Previous by thread: Re: NSDocument subclass, File Wrappers & Core Data
  • Next by thread: Re: NSDocument subclass, File Wrappers & Core Data
  • Index(es):
    • Date
    • Thread