• 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
Saving a core data model to persistent store makes application hang
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving a core data model to persistent store makes application hang


  • Subject: Saving a core data model to persistent store makes application hang
  • From: Remco Poelstra <email@hidden>
  • Date: Sun, 26 Nov 2006 17:11:09 +0100

Hi,

I'm writing a small app which should enable the user to draw some kind of flowcharts. I subclassed NSManagedobject for one of the entities. Also wrote a subclass of NSView to do the drawing. I'm using the NSPersistentDocument template from XCode as the basis for my application. When I've an empty document and hit close then everything goes fine. When I draw something on the view (and thus add an instance of the custom entity to the model) the drawing is just fine, but when I then hit close I get to question whether I want to save the document. Choosing yes and picking a filename, the application hangs. Sampling using Spin Control only shows me a list of pointers, instead of method names. How do I find out where things go wrong? Adding NSLog()'s to all my functions and see which one goes wrong? I suppose it's somewhere in my entity, since the rest of the app seems to work.
I've attached my custom entity perhaps somebody directly sees my error. I only use the bounds methods at the moment to do the drawing.


Thanks in advance,

Remco Poelstra

Attachment: MSChart_element.h
Description: Binary data

Attachment: MSChart_element.m
Description: Binary data

_______________________________________________

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

  • Follow-Ups:
    • Re: Saving a core data model to persistent store makes application hang
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Debugging an ignored exception
  • Next by Date: Re: Mysterious run time error
  • Previous by thread: Re: Mysterious run time error
  • Next by thread: Re: Saving a core data model to persistent store makes application hang
  • Index(es):
    • Date
    • Thread