Skip to content

Commit

Permalink
[DEV] Bump mogeneratorTestMule to be compatible with 10.6 Snow Leopar…
Browse files Browse the repository at this point in the history
…d (GCC_VERSION = 4.0) and mogenerator 1.14 (switch to +insertInManagedObjectContext:).
  • Loading branch information
rentzsch committed Oct 8, 2009
1 parent 15ba09b commit ddfc55e
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 253 deletions.
2 changes: 1 addition & 1 deletion mogeneratorTestMule/MOs/_ChildMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@end

@interface _ChildMO : HumanMO {}
+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ChildMOID*)objectID;


Expand Down
2 changes: 1 addition & 1 deletion mogeneratorTestMule/MOs/_ChildMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ @implementation ChildMOID

@implementation _ChildMO

+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ {
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Child" inManagedObjectContext:moc_];
}

Expand Down
18 changes: 9 additions & 9 deletions mogeneratorTestMule/MOs/_HumanMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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_;




Expand Down
34 changes: 17 additions & 17 deletions mogeneratorTestMule/MOs/_HumanMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ @implementation HumanMOID

@implementation _HumanMO

+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ {
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Human" inManagedObjectContext:moc_];
}

Expand All @@ -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 {
Expand All @@ -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"];
}







Expand Down
140 changes: 70 additions & 70 deletions mogeneratorTestMule/MOs/_ParentMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;



Expand All @@ -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_;



Expand Down
Loading

0 comments on commit ddfc55e

Please sign in to comment.