Re: Invalidated managed objects
Re: Invalidated managed objects
- Subject: Re: Invalidated managed objects
- From: Gideon King <email@hidden>
- Date: Sun, 4 Apr 2010 11:25:55 +1000
Phew, that's a relief. I'll look forward to hearing what I'm doing wrong in my sample project then.
Regards
Gideon
On 04/04/2010, at 11:22 AM, Ben Trumbull wrote:
>
> On Apr 3, 2010, at 5:07 PM, Gideon King wrote:
>
>> Wow, this is huge! Obviously the user doesn't expect the document to disappear and a new one open up just because they did a Save As operation
>
> I have I'm afraid led you astray. The invalidated objects are not coming from the Save As operation. The managed objects in the MOC bound to the NSPersistentDocument, and any other MOCs bound to that same PSC will keep the NSManagedObjects themselves in sync with the underlying document even as it is remapped to a new file. I'll send you a sample project from the template that logs the notifications from NSManagedObjectContext and NSPersistentStoreCoordinator. The NSManagedObject pointers remain undisturbed.
>
_______________________________________________
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