Re: CoreData retain/release/delete
Re: CoreData retain/release/delete
- Subject: Re: CoreData retain/release/delete
- From: Shawn Erickson <email@hidden>
- Date: Fri, 29 Apr 2005 17:32:29 -0700
On Apr 29, 2005, at 5:21 PM, Shawn Erickson wrote:
On Apr 29, 2005, at 5:02 PM, Johnny Deadman wrote:
Yeah, sorry, let me try this again a bit more clearly.
Do I have to delete objects manually using -deleteObject for them
to disappear from the persistent store?
Yes unless it will be deleted automatically by way of a cascading
delete.
In Xcode look at the "delete rule" popup for relationships between
entities.
To state things again... the life of an object in memory doesn't
dictate the life of the object in the persistent store (unless you
are breaking into Core Data memory management somehow).
In fact a release you send can cause an managed object to be
deallocated if no changes are pending and it will disappear out
memory but continue to exist in the persistent store. Generally an
object that is dumped out of memory is replaced with a fault object
as a place holder (as needed) for the object that still exists in the
persistent store.
At least that is my current understanding of things.
Review the following if you haven't already...
<file:///Developer/ADC Reference Library/documentation/Cocoa/
Conceptual/CoreData/Articles/cdUsingMOs.html#//apple_ref/doc/uid/
TP40001803/211728>
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden