Re: NSManagedObjected isInserted

2011-04-11 Thread Mike Abdullah
On 10 Apr 2011, at 19:52, Carter R. Harrison wrote: On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from

Re: NSManagedObjected isInserted

2011-04-11 Thread Jerry Krinock
On 2011 Apr 11, at 06:00, Mike Abdullah wrote: Think of it as being equivalent to: - (BOOL)isInserted; { return [[[self managedObjectContext] insertedObjects] containsObject:self]; } Oh! Thank you for clarifying that, Mike. I just sent Apple some Document Feedback on -isInserted.

NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from the context prior to calling isInserted. ___ Cocoa-dev mailing

Re: NSManagedObjected isInserted

2011-04-10 Thread Quincey Morris
On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from the context prior to calling isInserted. What do you

Re: NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from

Re: NSManagedObjected isInserted

2011-04-10 Thread Jerry Krinock
On 2011 Apr 10, at 11:52, Carter R. Harrison wrote: On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: The object should return YES for isInserted from the time it's inserted to the time the store is committed/saved. On a subsequent run of my application I fetch the object from the store