| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
- (void) dealloc { // regular dealloc stuff
[[self managedObjectContext] deleteObject: self]; }
It seems like it would work and is reasonably elegant, but it seems a bit too obvious to be valid code! :)
More importantly, what happens to the copy in the persistent store? When the MOC saves, is the persistent store overwritten, and the object effectively deleted from the saved file, or does it hang around and have to be deleted manually using the -deleteObject method?
b.bum
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >CoreData retain/release/delete (From: John Brownlow <email@hidden>) | |
| >Re: CoreData retain/release/delete (From: Scott Stevenson <email@hidden>) | |
| >Re: CoreData retain/release/delete (From: John Brownlow <email@hidden>) | |
| >Re: CoreData retain/release/delete (From: Scott Stevenson <email@hidden>) | |
| >Re: CoreData retain/release/delete (From: John Brownlow <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.