Search code examples
cocoadebuggingcore-datacocoa-bindingsbinding

Debugging COCOA Core Data bindings


In my document Core Data application I receive crash with report in console:

Cocoa Bindings: Cannot create NSSet from object <_NSControllerObjectProxy: 0x26acb0> of class _NSControllerObjectProxy

I have -NSBindingDebugLogLevel 1 startup vargument enebled and I get only this. Is there any way to get more information which class or controller is raising it? Or get class name from pointer address?

Stack:

#0  0x9141f4e6 in objc_exception_throw
#1  0x951288e8 in +[NSException raise:format:arguments:]
#2  0x9512885a in +[NSException raise:format:]
#3  0x956837dc in -[_NSManagedProxy _entity]
#4  0x9568392a in -[_NSManagedProxy fetchRequestWithSortDescriptors:limit:]
#5  0x956835bb in -[NSArrayController(NSManagedController) defaultFetchRequest]
#6  0x95683486 in -[NSObjectController(NSManagedController) _executeFetch:didCommitSuccessfully:actionSender:]

Solution

  • For anybody wasting time debugging su a issues - make sure datamodel is included in the target. In my case after making some versioning changes file got excluded from target.

    Such a trivial.