Re: NSDocument subclass, File Wrappers & Core Data
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