Core Data "commit changes" -- What does that mean?
Core Data "commit changes" -- What does that mean?
- Subject: Core Data "commit changes" -- What does that mean?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 11 Jul 2009 14:07:07 -0700
Throughout the NSManagedObjectContext API reference I read about
"changes" being "committed", but I can't find any definition of that
phrase. Since I understand that Core Data is not a database, I don't
want to assume database lingo.
Is "commit changes" synonymous with "send the managed object context a
save: message and see it return YES"?
There is also discussion of "commit editing" but that seems to be
something different.
Thanks,
Jerry Krinock
Examples:
1. "Through a context you can ... either discard the changes or—again
through the context—commit them back to the persistent store. ... You
can insert new objects and delete ones you have fetched, and commit
these modifications to the persistent store."
2. "It is assigned a permanent global ID when changes are committed."
_______________________________________________
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