• 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: Getting NSException on NSManagedObjectContext save:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSException on NSManagedObjectContext save:


  • Subject: Re: Getting NSException on NSManagedObjectContext save:
  • From: Scott Stevenson <email@hidden>
  • Date: Sat, 17 Mar 2007 16:22:02 -0700


On Mar 17, 2007, at 2:57 PM, Neil Clayton wrote:

I managed to find the cause by dumping the object before saving it and manually staring at every value until I found the nil - is there some better way? Is there some option I can turn on (an ENV variable, for example) that would cause CoreData to spit out more meaningful errors?

One good option is to set a breakpoint on [NSException raise] in the breakpoints window (Debug > Breakpoints) so that you can see the call stack when this happens.


There's also the SQLDebug flag, though I'm not sure how it will help you here (under "Debugging Fetching"):
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdTroubleshooting.html>


     - 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


References: 
 >Getting NSException on NSManagedObjectContext save: (From: Neil Clayton <email@hidden>)

  • Prev by Date: Re: Preventing default drawing of slider bar in custom NSSlider class
  • Next by Date: Re: Preventing default drawing of slider bar in custom NSSlider class
  • Previous by thread: Getting NSException on NSManagedObjectContext save:
  • Next by thread: NSAttributedString with NSTextTable Can not save with NSArchiver Suggestions
  • Index(es):
    • Date
    • Thread