I am reading the section named “Introducing the UIManagedDocument” (in Chapter 9, “Using Core Data with iCloud”).
I became rather confused starting with the paragraph that starts, “The second URL–the iCloud URL–is a bit different.” Following the example, the method initializeCoreDataStack() has no call to fileManager.URLForUbiquityContainerIdentifier().
After perusing PPRDataController.swift, I found a method called initializeCoreDataStack2(), which does call fileManager.URLForUbiquityContainerIdentifer(). However, the initializer for PPRDataController does not call initializeCoreDataStack2().
Is this a bug? Or, I am misunderstanding the code?