Author: torehalset
Date: Wed Oct 4 13:17:18 2006
New Revision: 453005
URL: http://svn.apache.org/viewvc?view=rev&rev=453005
Log:
ya simple bug that was hard to get..
Modified:
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYNodeIdChangeOperation.m
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
Modified:
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYNodeIdChangeOperation.m
URL:
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYNodeIdChangeOperation.m?view=diff&rev=453005&r1=453004&r2=453005
==============================================================================
---
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYNodeIdChangeOperation.m
(original)
+++
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYNodeIdChangeOperation.m
Wed Oct 4 13:17:18 2006
@@ -54,10 +54,9 @@
if(o)
{
[o setObjectId:(CAYObjectId *)[self newNodeId]];
- // TODO: should probably remove old object, but it lead to a crash..
- //[objectStore removeObjectForKey:[self nodeId]];
[objectStore setObject:o forKey:[self newNodeId]];
- NSLog(@"object after %@: %@", self, o);
+ [objectStore removeObjectForKey:[self nodeId]];
+ NSLog(@"DEBUG: object after %@: %@", self, o);
}
else
{
Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
URL:
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m?view=diff&rev=453005&r1=453004&r2=453005
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
(original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m Wed
Oct 4 13:17:18 2006
@@ -292,7 +292,6 @@
// TODO: init relationship values to NSNull as well?
- [randomdata release];
[oid release];
[o release];
}