Skip to content

Commit

Permalink
[DEV] Bump mogeneratorTestMule to use @dynamic.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Oct 9, 2009
1 parent 8a7a1f3 commit a903d16
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 344 deletions.
12 changes: 2 additions & 10 deletions mogeneratorTestMule/MOs/_ChildMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,15 @@



- (NSString*)childName;
- (void)setChildName:(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 *childName;
#endif
@property (nonatomic, retain) NSString *childName;

//- (BOOL)validateChildName:(id*)value_ error:(NSError**)error_;




- (ParentMO*)parent;
- (void)setParent:(ParentMO*)value_;
@property (nonatomic, retain) ParentMO* parent;
//- (BOOL)validateParent:(id*)value_ error:(NSError**)error_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@property (retain) ParentMO* parent;
#endif



Expand Down
28 changes: 2 additions & 26 deletions mogeneratorTestMule/MOs/_ChildMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,14 @@ - (ChildMOID*)objectID {



- (NSString*)childName {
[self willAccessValueForKey:@"childName"];
NSString *result = [self primitiveValueForKey:@"childName"];
[self didAccessValueForKey:@"childName"];
return result;
}

- (void)setChildName:(NSString*)value_ {
[self willChangeValueForKey:@"childName"];
[self setPrimitiveValue:value_ forKey:@"childName"];
[self didChangeValueForKey:@"childName"];
}

@dynamic childName;







- (ParentMO*)parent {
[self willAccessValueForKey:@"parent"];
ParentMO *result = [self primitiveValueForKey:@"parent"];
[self didAccessValueForKey:@"parent"];
return result;
}

- (void)setParent:(ParentMO*)value_ {
[self willChangeValueForKey:@"parent"];
[self setPrimitiveValue:value_ forKey:@"parent"];
[self didChangeValueForKey:@"parent"];
}
@dynamic parent;



Expand Down
18 changes: 3 additions & 15 deletions mogeneratorTestMule/MOs/_HumanMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,13 @@



- (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
@property (nonatomic, retain) NSData *hairColorStorage;

//- (BOOL)validateHairColorStorage:(id*)value_ error:(NSError**)error_;



- (NSString*)humanName;
- (void)setHumanName:(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 *humanName;
#endif
@property (nonatomic, retain) NSString *humanName;

//- (BOOL)validateHumanName:(id*)value_ error:(NSError**)error_;

Expand All @@ -38,12 +30,8 @@



- (NSManagedObject*)meaninglessRelationship;
- (void)setMeaninglessRelationship:(NSManagedObject*)value_;
@property (nonatomic, retain) NSManagedObject* meaninglessRelationship;
//- (BOOL)validateMeaninglessRelationship:(id*)value_ error:(NSError**)error_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@property (retain) NSManagedObject* meaninglessRelationship;
#endif



Expand Down
41 changes: 3 additions & 38 deletions mogeneratorTestMule/MOs/_HumanMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,58 +19,23 @@ - (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"];
}



@dynamic hairColorStorage;



- (NSString*)humanName {
[self willAccessValueForKey:@"humanName"];
NSString *result = [self primitiveValueForKey:@"humanName"];
[self didAccessValueForKey:@"humanName"];
return result;
}

- (void)setHumanName:(NSString*)value_ {
[self willChangeValueForKey:@"humanName"];
[self setPrimitiveValue:value_ forKey:@"humanName"];
[self didChangeValueForKey:@"humanName"];
}


@dynamic humanName;








- (NSManagedObject*)meaninglessRelationship {
[self willAccessValueForKey:@"meaninglessRelationship"];
NSManagedObject *result = [self primitiveValueForKey:@"meaninglessRelationship"];
[self didAccessValueForKey:@"meaninglessRelationship"];
return result;
}

- (void)setMeaninglessRelationship:(NSManagedObject*)value_ {
[self willChangeValueForKey:@"meaninglessRelationship"];
[self setPrimitiveValue:value_ forKey:@"meaninglessRelationship"];
[self didChangeValueForKey:@"meaninglessRelationship"];
}
@dynamic meaninglessRelationship;



Expand Down
90 changes: 16 additions & 74 deletions mogeneratorTestMule/MOs/_ParentMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@



- (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 *myInt16Transient;
#endif
@property (nonatomic, retain) NSNumber *myInt16Transient;

- (short)myInt16TransientValue;
- (void)setMyInt16TransientValue:(short)value_;
Expand All @@ -28,61 +24,37 @@



- (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 *parentName;
#endif
@property (nonatomic, retain) NSString *parentName;

//- (BOOL)validateParentName:(id*)value_ error:(NSError**)error_;



- (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) NSObject *myTransformableSansClassName;
#endif
@property (nonatomic, retain) NSObject *myTransformableSansClassName;

//- (BOOL)validateMyTransformableSansClassName:(id*)value_ error:(NSError**)error_;



- (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) NSDecimalNumber *myDecimal;
#endif
@property (nonatomic, retain) NSDecimalNumber *myDecimal;

//- (BOOL)validateMyDecimal:(id*)value_ error:(NSError**)error_;



- (NSDate*)myDate;
- (void)setMyDate:(NSDate*)value_;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@property (retain) NSDate *myDate;
#endif
@property (nonatomic, retain) NSDate *myDate;

//- (BOOL)validateMyDate:(id*)value_ error:(NSError**)error_;



- (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) NSColor *myTransformableWithClassName;
#endif
@property (nonatomic, retain) NSColor *myTransformableWithClassName;

//- (BOOL)validateMyTransformableWithClassName:(id*)value_ error:(NSError**)error_;



- (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 *myBoolean;
#endif
@property (nonatomic, retain) NSNumber *myBoolean;

- (BOOL)myBooleanValue;
- (void)setMyBooleanValue:(BOOL)value_;
Expand All @@ -91,11 +63,7 @@



- (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) NSNumber *myInt64;
#endif
@property (nonatomic, retain) NSNumber *myInt64;

- (long long)myInt64Value;
- (void)setMyInt64Value:(long long)value_;
Expand All @@ -104,11 +72,7 @@



- (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) NSNumber *myDouble;
#endif
@property (nonatomic, retain) NSNumber *myDouble;

- (double)myDoubleValue;
- (void)setMyDoubleValue:(double)value_;
Expand All @@ -117,11 +81,7 @@



- (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 *myInt16;
#endif
@property (nonatomic, retain) NSNumber *myInt16;

- (short)myInt16Value;
- (void)setMyInt16Value:(short)value_;
Expand All @@ -130,11 +90,7 @@



- (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 *myFloat;
#endif
@property (nonatomic, retain) NSNumber *myFloat;

- (float)myFloatValue;
- (void)setMyFloatValue:(float)value_;
Expand All @@ -143,31 +99,19 @@



- (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) NSData *myBinaryData;
#endif
@property (nonatomic, retain) NSData *myBinaryData;

//- (BOOL)validateMyBinaryData:(id*)value_ error:(NSError**)error_;



- (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) NSString *myString;
#endif
@property (nonatomic, retain) NSString *myString;

//- (BOOL)validateMyString:(id*)value_ error:(NSError**)error_;



- (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) NSNumber *myInt32;
#endif
@property (nonatomic, retain) NSNumber *myInt32;

- (int)myInt32Value;
- (void)setMyInt32Value:(int)value_;
Expand All @@ -177,15 +121,13 @@



- (NSSet*)children;
@property (nonatomic, retain) NSSet* children;

- (void)addChildren:(NSSet*)value_;
- (void)removeChildren:(NSSet*)value_;
- (void)addChildrenObject:(ChildMO*)value_;
- (void)removeChildrenObject:(ChildMO*)value_;
- (NSMutableSet*)childrenSet;
#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@property (retain) NSSet* children;
#endif



Expand Down
Loading

0 comments on commit a903d16

Please sign in to comment.