Debugging NSWindowController and NSArrayController
Debugging NSWindowController and NSArrayController
- Subject: Debugging NSWindowController and NSArrayController
- From: Rui Pacheco <email@hidden>
- Date: Wed, 11 Apr 2012 15:04:54 +0200
Hi,
I have an NSWindowController that creates an instance of
NSManagedObjectContext. That window controller loads a NIB that has a table
populated by an NSArrayController bound to the MOC in the window
controller. This was done via Interface Builder. The array controller is
set to retrieve Entities of type X.
On the init method of my window controller I add an object of type X to the
MOC and I can see it's there because I can fetch it on windowDidLoad but
for some reason the array controller on the NIB doesn't see any data. If I
fire up gdb and do *po [arrayController arrangedObjects]* I get an empty
array.
Is there any other way of debugging this?
--
Rui Pacheco
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden