#17 accepted
Brandon Walkin

Crash when binding array controller to Core Data

Reported by Brandon Walkin | August 30th, 2009 @ 01:19 AM

My app's seem to crash when trying to use your framework and core data in the same application.

I often need to use an array controller and once that array controller is bound to an entity, the app will crash unless I remove the toolkit framework.

Here is the data from the console:

The Debugger Debugger is attaching to process [Session started at 2009-08-16 20:38:01 -0400.]
2009-08-16 20:38:02.020 Jottings[68511:10b] An uncaught exception was raised 2009-08-16 
20:38:02.021 Jottings[68511:10b] [<NSApplication 0x111bf0> valueForUndefinedKey:]: this class
 is not key value coding-compliant for the key managedObjectContext. 2009-08-16 20:38:02.022 
Jottings[68511:10b] * Terminating app due to uncaught exception 'NSUnknownKeyException', 
reason: '[<NSApplication 0x111bf0> valueForUndefinedKey:]: this class is not key value 
coding-compliant for the key managedObjectContext.' 2009-08-16 20:38:02.022 
Jottings[68511:10b] Stack: ( 2434056171, 2527538747, 2434054929, 2417455475, 2416371147, 
2416369882, 2441119909, 2416557146, 2440880524, 2440879508, 2440878208, 2440877312, 2440876847, 
2440844704, 2441092054, 2438827084, 2438787002, 2438785308, 2438784351, 2438784157, 2438783308, 
9640, 9566 )

Comment thread from old issue tracker:

bwalkin:

I've never used Core Data so I'm not sure why this is happening. Would you be able to investigate this and see if you can narrow it down? Could it be my category on NSApplication?

Anonymous:

I would like to but I am a newbie to coding desktop software.

I've narrowed the issue down to when you bind the array controller to the SharedObjectController, which is required for my project. Other than that, it builds and works without a problem.

If I remove the Array Controller or the framework, it works fine. So I've come to the conclusion that the framework doesn't like it when I bind the array controller to the SharedObjectController.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.

Shared Ticket Bins

People watching this ticket

Tags

Pages