Re: Core Data saving / Leopard / The temporary directory at ...
Re: Core Data saving / Leopard / The temporary directory at ...
- Subject: Re: Core Data saving / Leopard / The temporary directory at ...
- From: chaitanya pandit <email@hidden>
- Date: Tue, 21 Oct 2008 20:13:28 +0530
Well i'm not a core data pro. but here is what i have observed with
core data. If you create an entity and delete it after saving, the
deleted entity will be shown in the
"[[[self managedObjectContext] deletedObjects]allObjects]" array.
But if you delete the entity immediately after creation without a save
in between, it won't get added to the deletedObjects array.
Might have to consider this if you are doing some cleanup using the
deleted entities.
Also did you try manually removing the child's relation to it's parent
before delete?
HTH,
Chaitanya
On 21-Oct-08, at 4:56 AM, Jonathan Freeman wrote:
Hello all,
I've got an odd saving issue that one of my beta users just found. I
can replicate this on 10.5.5, and it's basically one cannot save a
Core Data document with a specific series of events. I've done the
google route and found a few other developers seeing this with no
resolve. Any insight into this would be great and here's the
following error in the logs:
The temporary directory at "/private/var/folders/HA/HA4yqX
+JH9mzFyLKrp721++++TI/TemporaryItems/(A Document Being Saved By
<anApp>)" could not be deleted.
This will save and Parent has to many relationship to Child,
inverse. Child has relationship to Parent, inverse:
1. File New
2. Create Parent entity
3. File Save
3. Create Child entity
4. Create another Child entity
5. Create yet another Child entity
6. File Save
7. Delete a Child entity
8. File Save
This will NOT save:
1. File New
2. Create Parent entity
3. File Save
4. Create Child entity
5. Create another Child entity
6. Create yet another Child entity
7. Delete a Child entity
8. File Save (will not save, throws the error)
I've looked at the Managed Object Context with F-script and do not
see any orphan relationships or entities. Everything appears to
behave correctly.
Thanks so much for your time,
Jonathan Freeman
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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