Debugging NSArrayController bound to NSManagedObjectContext
I've an NSManagedObjectContext with two entities, A and B. I've an NSArrayController bound to the NSManagedObjectContext and an NSTableView. The NSArrayController is set to list entities of type B. The array controller then feeds the table view.
The NIB where the array controller sits is called by a an NSWindowController. On init I add one instance of each object but when I get to windowDidLoad the managed object context has been populated but the array controller is empty.
Using gdb I can print the MOC visible in the window controller and the one bound to the array controller and they both have the same address.
Any clues on how to debug this?
Deleted the NIB and controller and created the code from scratch. Things seem to work perfectly. I suspect this was a bug in Xcode.