Author: torehalset
Date: Mon Jan 8 14:22:21 2007
New Revision: 494224
URL: http://svn.apache.org/viewvc?view=rev&rev=494224
Log:
..change method name to more obj-c style..
Modified:
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.h
incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.m
Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
URL:
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m?view=diff&rev=494224&r1=494223&r2=494224
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
(original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m Mon
Jan 8 14:22:21 2007
@@ -318,7 +318,7 @@
// need to search by class as o does not have an ObjectId with entityName
yet
CAYObjEntity *objEntity = [[self entityResolver] objEntityForClass:[o
class]];
[oid setEntityName:[objEntity name]];
- [oid setTempKey:[CAYUtil createRandomData:8]];
+ [oid setTempKey:[CAYUtil createRandomDataWithLength:8]];
[o setObjectId:oid];
CAYNodeDiff *diff = [[CAYNodeCreateOperation alloc] initWithNodeId:oid];
Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.h
URL:
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.h?view=diff&rev=494224&r1=494223&r2=494224
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.h (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.h Mon Jan 8
14:22:21 2007
@@ -25,6 +25,6 @@
}
+(BOOL)nilSafe:(id)a isEqualTo:(id)b;
-+(NSData *)createRandomData:(int)length;
++(NSData *)createRandomDataWithLength:(int)length;
@end
Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.m
URL:
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.m?view=diff&rev=494224&r1=494223&r2=494224
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYUtil.m Mon Jan 8
14:22:21 2007
@@ -37,7 +37,7 @@
return [a isEqualTo:b];
}
-+(NSData *)createRandomData:(int)length
++(NSData *)createRandomDataWithLength:(int)length
{
int randombytes[length];
int i;