Re: isTemporaryID unrecognized selector?
Re: isTemporaryID unrecognized selector?
- Subject: Re: isTemporaryID unrecognized selector?
- From: Kyle Sluder <email@hidden>
- Date: Sat, 14 Aug 2010 18:20:26 -0700
On Sat, Aug 14, 2010 at 6:05 PM, Ferhat Ayaz <email@hidden> wrote:
> yes I looked. But I don't get it. Sorry but I can not find the place in the documentation of NSManagedObject and in the hole Core Data documentation.
NSManagedObject doesn't respond to -isTemporaryID. That's an
NSManagedObjectID instance method. This means that someone's sending
-isTemporaryID to the wrong object. Most commonly this is a memory
management bug—an instance of NSManagedObjectID has been deallocated
prematurely, and an instance of NSManagedObject has taken its address
in RAM. Code with a pointer to what it thinks is still an
NSManagedObjectID now sends -isTemporaryID to the NSManagedObject.
Make sure you're running with the analyzer enabled to help catch your
memory management bugs, and read up on general debugging techniques.
At the very least, you should have been running in the debugger and
gotten a backtrace from the exception.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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