Core data confused
Core data confused
- Subject: Core data confused
- From: Johan Malmstrom <email@hidden>
- Date: Thu, 18 Jan 2007 10:12:07 +0100
Hi all!
This is first my real world challange with Core Data and I'm quite
confused at the moment.
My problem seems to be that the entites I create in the data model is
not created at runtime resulting in a runtime error:
"2007-01-18 09:40:05.797 HID2[477] *** NSRunLoop ignoring exception
'Cannot perform operation since entity with name 'BTDevice' cannot be
found' that raised during posting of delayed perform with target
396160 and selector 'invokeWithTarget:'
"
The plot:
My data model holds two entites:
- BTDevice with 4 attributes (btDeviceName, ...), and one relation
(one-to-many)
- HIDevice with 2 attributes (hidName, ...) and one relation
The MainMenu.nib contains:
- BTDController, a NSArrayController (Mode: Entity Entity name:
BTdevice), binding settings are managedObjectContext to the class
AppDelegate and model key path is managedObjectContext.
- HIDControler, a NSArrayController (Mode: Entity Entity name:
HIDevice). Same setup as BTController.
- MainWindow, a NSWindow with two NSTableView.
The first tableview has one coloumn which has binding: "value=
arrangedObject.btDeviceName [BTController]". The second has one
column with binding: "value= arrangedObject.hidName [HIDevice]"
This is my quite simple set up, and don't get what I'm missing!
/ Johan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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