• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core data confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data confused


  • Subject: Re: Core data confused
  • From: Marc Respass <email@hidden>
  • Date: Fri, 19 Jan 2007 10:47:30 -0500

You can run your app in the debugger and enter some commands into GDB. If you have a standard CoreData application, there's an application delegate with all the methods to setup your CoreData stack. I would check there and make sure that everything is being loaded and setup. Also check your binary to be sure that the core data model got compiled into your app. Stop in each of them (managedObjectModel, managedObjectContext, etc). Remember that you can send messages to nil so if managedObjectModel is nil, you can still send entitiesByName to it.

To get GDB to show you the value of a variable, use the po command:

po managedObjectModel
po [managedObjectModel entitiesByName]

Hope this helps and good luck
Marc

On Jan 19, 2007, at 2:32 AM, Johan Malmstrom wrote:

Hi Scott, et al!

First I was hoping for a typo solution but to my disappointment it was not that, I have all the chars in their right cases.

I have tried to make a list of all entities using:

" NSDictionary *debug_entitysdict= [managedObjectModel entitiesByName] ;"

Where

 managedObjectModel = [[NSApp delegate] managedObjectContext];
	

But to my frustration the debug_entitysdict is empty.

/ Johan	

18 jan 2007 kl. 16.53 skrev Scott Stevenson:


On Jan 18, 2007, at 1:12 AM, Johan Malmstrom wrote:

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 problem seems to be that BTDevice isn't in the managed object model?


Perhaps there's a typo somewhere? I think these things are case sensitive, and you say the array controller is set to "BTdevice".

- Scott

_______________________________________________

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

_______________________________________________

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


References: 
 >Core data confused (From: Johan Malmstrom <email@hidden>)
 >Re: Core data confused (From: Scott Stevenson <email@hidden>)
 >Re: Core data confused (From: Johan Malmstrom <email@hidden>)

  • Prev by Date: Re: Regarding launching an application at startup of mac.
  • Next by Date: Re: HTMLEditing.framework & Cocoa
  • Previous by thread: Re: Core data confused
  • Next by thread: Re: Core data confused
  • Index(es):
    • Date
    • Thread