Permalink
Browse files

[DEV] Bump mogeneratorTestMule to be compatible with 10.6 Snow Leopar…

…d (GCC_VERSION = 4.0) and mogenerator 1.14 (switch to +insertInManagedObjectContext:).
  • Loading branch information...
1 parent 15ba09b commit ddfc55efcef756e75afb229c0dd8530673a28078 @rentzsch committed Oct 8, 2009
@@ -10,7 +10,7 @@
@end
@interface _ChildMO : HumanMO {}
-+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ChildMOID*)objectID;
@@ -8,7 +8,7 @@ @implementation ChildMOID
@implementation _ChildMO
-+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ {
++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Child" inManagedObjectContext:moc_];
}
@@ -10,11 +10,19 @@
@end
@interface _HumanMO : MyBaseClass {}
-+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (HumanMOID*)objectID;
+- (NSData*)hairColorStorage;
+- (void)setHairColorStorage:(NSData*)value_;
+#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+@property (retain) NSData *hairColorStorage;
+#endif
+
+//- (BOOL)validateHairColorStorage:(id*)value_ error:(NSError**)error_;
+
- (NSString*)humanName;
@@ -27,14 +35,6 @@
-- (NSData*)hairColorStorage;
-- (void)setHairColorStorage:(NSData*)value_;
-#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSData *hairColorStorage;
-#endif
-
-//- (BOOL)validateHairColorStorage:(id*)value_ error:(NSError**)error_;
-
@@ -8,7 +8,7 @@ @implementation HumanMOID
@implementation _HumanMO
-+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ {
++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Human" inManagedObjectContext:moc_];
}
@@ -19,6 +19,22 @@ - (HumanMOID*)objectID {
+- (NSData*)hairColorStorage {
+ [self willAccessValueForKey:@"hairColorStorage"];
+ NSData *result = [self primitiveValueForKey:@"hairColorStorage"];
+ [self didAccessValueForKey:@"hairColorStorage"];
+ return result;
+}
+
+- (void)setHairColorStorage:(NSData*)value_ {
+ [self willChangeValueForKey:@"hairColorStorage"];
+ [self setPrimitiveValue:value_ forKey:@"hairColorStorage"];
+ [self didChangeValueForKey:@"hairColorStorage"];
+}
+
+
+
+
- (NSString*)humanName {
@@ -39,22 +55,6 @@ - (void)setHumanName:(NSString*)value_ {
-- (NSData*)hairColorStorage {
- [self willAccessValueForKey:@"hairColorStorage"];
- NSData *result = [self primitiveValueForKey:@"hairColorStorage"];
- [self didAccessValueForKey:@"hairColorStorage"];
- return result;
-}
-
-- (void)setHairColorStorage:(NSData*)value_ {
- [self willChangeValueForKey:@"hairColorStorage"];
- [self setPrimitiveValue:value_ forKey:@"hairColorStorage"];
- [self didChangeValueForKey:@"hairColorStorage"];
-}
-
-
-
-
@@ -10,51 +10,51 @@
@end
@interface _ParentMO : HumanMO {}
-+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ParentMOID*)objectID;
-- (NSNumber*)myDouble;
-- (void)setMyDouble:(NSNumber*)value_;
+- (NSNumber*)myInt16Transient;
+- (void)setMyInt16Transient:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myDouble;
+@property (retain) NSNumber *myInt16Transient;
#endif
-- (double)myDoubleValue;
-- (void)setMyDoubleValue:(double)value_;
+- (short)myInt16TransientValue;
+- (void)setMyInt16TransientValue:(short)value_;
-//- (BOOL)validateMyDouble:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyInt16Transient:(id*)value_ error:(NSError**)error_;
-- (NSString*)myString;
-- (void)setMyString:(NSString*)value_;
+- (NSString*)parentName;
+- (void)setParentName:(NSString*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSString *myString;
+@property (retain) NSString *parentName;
#endif
-//- (BOOL)validateMyString:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateParentName:(id*)value_ error:(NSError**)error_;
-- (NSDecimalNumber*)myDecimal;
-- (void)setMyDecimal:(NSDecimalNumber*)value_;
+- (NSObject*)myTransformableSansClassName;
+- (void)setMyTransformableSansClassName:(NSObject*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSDecimalNumber *myDecimal;
+@property (retain) NSObject *myTransformableSansClassName;
#endif
-//- (BOOL)validateMyDecimal:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyTransformableSansClassName:(id*)value_ error:(NSError**)error_;
-- (NSString*)parentName;
-- (void)setParentName:(NSString*)value_;
+- (NSDecimalNumber*)myDecimal;
+- (void)setMyDecimal:(NSDecimalNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSString *parentName;
+@property (retain) NSDecimalNumber *myDecimal;
#endif
-//- (BOOL)validateParentName:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyDecimal:(id*)value_ error:(NSError**)error_;
@@ -68,111 +68,111 @@
-- (NSNumber*)myFloat;
-- (void)setMyFloat:(NSNumber*)value_;
+- (NSColor*)myTransformableWithClassName;
+- (void)setMyTransformableWithClassName:(NSColor*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myFloat;
+@property (retain) NSColor *myTransformableWithClassName;
#endif
-- (float)myFloatValue;
-- (void)setMyFloatValue:(float)value_;
-
-//- (BOOL)validateMyFloat:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyTransformableWithClassName:(id*)value_ error:(NSError**)error_;
-- (NSNumber*)myInt32;
-- (void)setMyInt32:(NSNumber*)value_;
+- (NSNumber*)myBoolean;
+- (void)setMyBoolean:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myInt32;
+@property (retain) NSNumber *myBoolean;
#endif
-- (int)myInt32Value;
-- (void)setMyInt32Value:(int)value_;
+- (BOOL)myBooleanValue;
+- (void)setMyBooleanValue:(BOOL)value_;
-//- (BOOL)validateMyInt32:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyBoolean:(id*)value_ error:(NSError**)error_;
-- (NSColor*)myTransformableWithClassName;
-- (void)setMyTransformableWithClassName:(NSColor*)value_;
+- (NSNumber*)myInt64;
+- (void)setMyInt64:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSColor *myTransformableWithClassName;
+@property (retain) NSNumber *myInt64;
#endif
-//- (BOOL)validateMyTransformableWithClassName:(id*)value_ error:(NSError**)error_;
+- (long long)myInt64Value;
+- (void)setMyInt64Value:(long long)value_;
+
+//- (BOOL)validateMyInt64:(id*)value_ error:(NSError**)error_;
-- (NSData*)myBinaryData;
-- (void)setMyBinaryData:(NSData*)value_;
+- (NSNumber*)myDouble;
+- (void)setMyDouble:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSData *myBinaryData;
+@property (retain) NSNumber *myDouble;
#endif
-//- (BOOL)validateMyBinaryData:(id*)value_ error:(NSError**)error_;
+- (double)myDoubleValue;
+- (void)setMyDoubleValue:(double)value_;
+//- (BOOL)validateMyDouble:(id*)value_ error:(NSError**)error_;
-- (NSNumber*)myInt16Transient;
-- (void)setMyInt16Transient:(NSNumber*)value_;
+
+- (NSNumber*)myInt16;
+- (void)setMyInt16:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myInt16Transient;
+@property (retain) NSNumber *myInt16;
#endif
-- (short)myInt16TransientValue;
-- (void)setMyInt16TransientValue:(short)value_;
+- (short)myInt16Value;
+- (void)setMyInt16Value:(short)value_;
-//- (BOOL)validateMyInt16Transient:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyInt16:(id*)value_ error:(NSError**)error_;
-- (NSNumber*)myBoolean;
-- (void)setMyBoolean:(NSNumber*)value_;
+- (NSNumber*)myFloat;
+- (void)setMyFloat:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myBoolean;
+@property (retain) NSNumber *myFloat;
#endif
-- (BOOL)myBooleanValue;
-- (void)setMyBooleanValue:(BOOL)value_;
+- (float)myFloatValue;
+- (void)setMyFloatValue:(float)value_;
-//- (BOOL)validateMyBoolean:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyFloat:(id*)value_ error:(NSError**)error_;
-- (NSNumber*)myInt64;
-- (void)setMyInt64:(NSNumber*)value_;
+- (NSData*)myBinaryData;
+- (void)setMyBinaryData:(NSData*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myInt64;
+@property (retain) NSData *myBinaryData;
#endif
-- (long long)myInt64Value;
-- (void)setMyInt64Value:(long long)value_;
-
-//- (BOOL)validateMyInt64:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyBinaryData:(id*)value_ error:(NSError**)error_;
-- (NSNumber*)myInt16;
-- (void)setMyInt16:(NSNumber*)value_;
+- (NSString*)myString;
+- (void)setMyString:(NSString*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSNumber *myInt16;
+@property (retain) NSString *myString;
#endif
-- (short)myInt16Value;
-- (void)setMyInt16Value:(short)value_;
-
-//- (BOOL)validateMyInt16:(id*)value_ error:(NSError**)error_;
+//- (BOOL)validateMyString:(id*)value_ error:(NSError**)error_;
-- (NSObject*)myTransformableSansClassName;
-- (void)setMyTransformableSansClassName:(NSObject*)value_;
+- (NSNumber*)myInt32;
+- (void)setMyInt32:(NSNumber*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-@property (retain) NSObject *myTransformableSansClassName;
+@property (retain) NSNumber *myInt32;
#endif
-//- (BOOL)validateMyTransformableSansClassName:(id*)value_ error:(NSError**)error_;
+- (int)myInt32Value;
+- (void)setMyInt32Value:(int)value_;
+
+//- (BOOL)validateMyInt32:(id*)value_ error:(NSError**)error_;
Oops, something went wrong.

0 comments on commit ddfc55e

Please sign in to comment.