Core Data Programming Guide does not include information about parent-child cont

Originator:quellish
Number:rdar://14310970 Date Originated:Sat, 29 Jun 2013 04:09:53 GMT
Status:Open Resolved:
Product:Documentation Product Version:
Classification: Reproducible:Always
 
Summary:
iOS 5 introduced parent-child contexts for managing changes in persistent stores. This is currently best documented in the iOS 5 release notes:
http://developer.apple.com/library/ios/#releasenotes/General/WhatsNewIniOS/Articles/iOS5.html
And in 2011 and 2012 WWDC Core Data sessions.

Documentation should include common use cases for this functionality, explanation of how this differs from non-nested contexts, and in particular how to propagate saves through nested contexts properly.

Steps to Reproduce:

Expected Results:

Actual Results:

Regression:

Notes:

Comments

Eg. -awakeFromInsert behavior

I'm told that -awakeFromInsert gets invoked in both parent and child contexts when a new object is inserted in the child and gets pushed up to the parent.

If one uses -awakeFromInsert to initialize any attributes on the object, the initializations get performed twice...or multiple times, depending on how many contexts the object insert gets propagated through. Nested contexts have the effect of making -awakeFromInsert less useful as a checkpoint for doing custom new object initializations.

By 1billgarrison at July 1, 2013, 1:28 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!