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?

Answers


Deleted the NIB and controller and created the code from scratch. Things seem to work perfectly. I suspect this was a bug in Xcode.


Need Your Help

C# for loop changing format DataTable

c# data-binding datatable

Below is my current format for exporting the results of Datatable and write into the excel

: Stored Procedure's and select statements

mysql stored-procedures

I'm looking into stored procedures at the moment.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.