Wrong binding of managedObjectContext?

When I create a new application for macOS, not document based, using CoreData, and bind an ArrayController to File's Owner persistentContainer.viewContext, I get the following exception:


2017-09-18 12:53:17.525295+0200 Parlament[1349:76421] [General] An uncaught exception was raised

2017-09-18 12:53:17.525332+0200 Parlament[1349:76421] [General] [<NSApplication 0x6000001006c0> addObserver:<NSObjectParameterBinder 0x608000091c10> forKeyPath:@"persistentContainer.viewContext" options:0 context:0x6080000e3100] was sent to an object that is not KVC-compliant for the "persistentContainer" property.

Does anybody know the right binding for the controller?

Replies

Delete this question. You asked the same question yesterday, and I answered it.


https://forums.developer.apple.com/thread/87727