Re: isTemporaryID unrecognized selector?
Re: isTemporaryID unrecognized selector?
- Subject: Re: isTemporaryID unrecognized selector?
- From: Ferhat Ayaz <email@hidden>
- Date: Sun, 15 Aug 2010 03:28:16 +0200
It seems like a memory management problem. I'm always building with analyze by default. There is no hints produced by the analyzer. I guess I have to dig more in the code.
On Aug 15, 2010, at 3:20 AM, Kyle Sluder wrote:
> 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
_______________________________________________
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