Changeset 166
- Timestamp:
- 11/10/06 23:06:11 (2 years ago)
- Files:
-
- trunk/cocoa/mogenerator/machine.h.motemplate (modified) (1 diff)
- trunk/cocoa/mogenerator/machine.m.motemplate (modified) (1 diff)
- trunk/cocoa/mogenerator/mogenerator.m (modified) (2 diffs)
- trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.mode1 (modified) (4 diffs)
- trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.pbxuser (modified) (2 diffs)
- trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ChildMO.h (modified) (1 diff)
- trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ChildMO.m (modified) (2 diffs)
- trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ParentMO.h (modified) (3 diffs)
- trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ParentMO.m (modified) (3 diffs)
- trunk/cocoa/mogenerator/mogeneratorTestMule/mogeneratorTestMule.xcodeproj/wolf.mode1 (modified) (6 diffs)
- trunk/cocoa/mogenerator/mogeneratorTestMule/mogeneratorTestMule.xcodeproj/wolf.pbxuser (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cocoa/mogenerator/machine.h.motemplate
r164 r166 10 10 11 11 @interface _<$managedObjectClassName$> : <$customSuperentity$> {} 12 <$foreach Attribute attributesByNamedo$>12 <$foreach Attribute noninheritedAttributes do$> 13 13 <$if Attribute.hasDefinedAttributeType$> 14 14 - (<$Attribute.attributeValueClassName$>*)<$Attribute.name$>; trunk/cocoa/mogenerator/machine.m.motemplate
r162 r166 5 5 6 6 @implementation _<$managedObjectClassName$> 7 <$foreach Attribute attributesByNamedo$>7 <$foreach Attribute noninheritedAttributes do$> 8 8 <$if Attribute.hasDefinedAttributeType$> 9 9 trunk/cocoa/mogenerator/mogenerator.m
r164 r166 32 32 } else { 33 33 return gCustomBaseClass ? gCustomBaseClass : @"NSManagedObject"; 34 } 35 } 36 /** @TypeInfo NSAttributeDescription */ 37 - (NSArray*)noninheritedAttributes { 38 NSEntityDescription *superentity = [self superentity]; 39 if (superentity) { 40 NSMutableArray *result = [[[self attributesByName] allValues] mutableCopy]; 41 [result removeObjectsInArray:[[superentity attributesByName] allValues]]; 42 return result; 43 } else { 44 return [[self attributesByName] allValues]; 34 45 } 35 46 } … … 162 173 break; 163 174 case opt_version: 164 printf("mogenerator 1.0. 3. By Jonathan 'Wolf' Rentzsch.\n");175 printf("mogenerator 1.0.4. By Jonathan 'Wolf' Rentzsch.\n"); 165 176 break; 166 177 case opt_help: trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.mode1
r164 r166 219 219 <array> 220 220 <dict> 221 <key>BecomeActive</key> 222 <true/> 221 223 <key>ContentConfiguration</key> 222 224 <dict> … … 334 336 </dict> 335 337 <dict> 336 <key>BecomeActive</key>337 <true/>338 338 <key>ContentConfiguration</key> 339 339 <dict> … … 372 372 <key>TableOfContents</key> 373 373 <array> 374 <string>790C55 640B05772800BF93B7</string>374 <string>790C55D90B058BD900BF93B7</string> 375 375 <string>1CE0B1FE06471DED0097A5F4</string> 376 <string>790C55 650B05772800BF93B7</string>376 <string>790C55DA0B058BD900BF93B7</string> 377 377 <string>1CE0B20306471E060097A5F4</string> 378 378 <string>1CE0B20506471E060097A5F4</string> … … 591 591 <array> 592 592 <string>79D2BF1B0ACFAF4A00F3F141</string> 593 <string>790C55 6B0B05783C00BF93B7</string>593 <string>790C55E00B058DBF00BF93B7</string> 594 594 <string>1CD0528F0623707200166675</string> 595 595 <string>XCMainBuildResultsModuleGUID</string> trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.pbxuser
r164 r166 73 73 ); 74 74 }; 75 PBXPerProjectTemplateStateSaveDate = 1849 07544;76 PBXWorkspaceStateSaveDate = 1849 07544;75 PBXPerProjectTemplateStateSaveDate = 184912844; 76 PBXWorkspaceStateSaveDate = 184912844; 77 77 }; 78 78 sourceControlManager = 79D2BF0B0ACFAE0700F3F141 /* Source Control */; … … 82 82 08FB7796FE84155DC02AAC07 /* mogenerator.m */ = { 83 83 uiCtxt = { 84 sepNavIntBoundsRect = "{{0, 0}, {1057, 3 388}}";85 sepNavSelRange = "{ 0, 0}";86 sepNavVisRect = "{{0, 567}, {1057, 777}}";84 sepNavIntBoundsRect = "{{0, 0}, {1057, 3542}}"; 85 sepNavSelRange = "{955, 0}"; 86 sepNavVisRect = "{{0, 0}, {1057, 777}}"; 87 87 sepNavWindowFrame = "{{339, 43}, {1096, 835}}"; 88 88 }; trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ChildMO.h
r165 r166 12 12 13 13 14 15 16 - (NSString*)humanName;17 - (void)setHumanName:(NSString*)value_;18 19 //- (BOOL)validateHumanName:(id*)value_ error:(NSError**)error_;20 21 22 23 14 - (NSString*)childName; 24 15 - (void)setChildName:(NSString*)value_; 25 16 26 17 //- (BOOL)validateChildName:(id*)value_ error:(NSError**)error_; 27 28 29 30 - (NSData*)hairColorStorage;31 - (void)setHairColorStorage:(NSData*)value_;32 33 //- (BOOL)validateHairColorStorage:(id*)value_ error:(NSError**)error_;34 18 35 19 trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ChildMO.m
r165 r166 5 5 6 6 @implementation _ChildMO 7 8 9 10 11 12 - (NSString*)humanName {13 [self willAccessValueForKey:@"humanName"];14 NSString *result = [self primitiveValueForKey:@"humanName"];15 [self didAccessValueForKey:@"humanName"];16 return result;17 }18 19 - (void)setHumanName:(NSString*)value_ {20 [self willChangeValueForKey:@"humanName"];21 [self setPrimitiveValue:value_ forKey:@"humanName"];22 [self didChangeValueForKey:@"humanName"];23 }24 25 26 27 7 28 8 … … 39 19 [self setPrimitiveValue:value_ forKey:@"childName"]; 40 20 [self didChangeValueForKey:@"childName"]; 41 }42 43 44 45 46 47 48 - (NSData*)hairColorStorage {49 [self willAccessValueForKey:@"hairColorStorage"];50 NSData *result = [self primitiveValueForKey:@"hairColorStorage"];51 [self didAccessValueForKey:@"hairColorStorage"];52 return result;53 }54 55 - (void)setHairColorStorage:(NSData*)value_ {56 [self willChangeValueForKey:@"hairColorStorage"];57 [self setPrimitiveValue:value_ forKey:@"hairColorStorage"];58 [self didChangeValueForKey:@"hairColorStorage"];59 21 } 60 22 trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ParentMO.h
r162 r166 29 29 30 30 31 - (NSString*)humanName;32 - (void)setHumanName:(NSString*)value_;33 34 //- (BOOL)validateHumanName:(id*)value_ error:(NSError**)error_;35 36 37 38 31 - (NSDecimalNumber*)myDecimal; 39 32 - (void)setMyDecimal:(NSDecimalNumber*)value_; … … 47 40 48 41 //- (BOOL)validateMyDate:(id*)value_ error:(NSError**)error_; 49 50 51 42 52 43 … … 116 107 117 108 118 - (NSData*)hairColorStorage;119 - (void)setHairColorStorage:(NSData*)value_;120 121 //- (BOOL)validateHairColorStorage:(id*)value_ error:(NSError**)error_;122 123 124 125 109 - (NSNumber*)myInt32; 126 110 - (void)setMyInt32:(NSNumber*)value_; trunk/cocoa/mogenerator/mogeneratorTestMule/MOs/_ParentMO.m
r162 r166 54 54 55 55 56 - (NSString*)humanName {57 [self willAccessValueForKey:@"humanName"];58 NSString *result = [self primitiveValueForKey:@"humanName"];59 [self didAccessValueForKey:@"humanName"];60 return result;61 }62 63 - (void)setHumanName:(NSString*)value_ {64 [self willChangeValueForKey:@"humanName"];65 [self setPrimitiveValue:value_ forKey:@"humanName"];66 [self didChangeValueForKey:@"humanName"];67 }68 69 70 71 72 73 74 56 - (NSDecimalNumber*)myDecimal { 75 57 [self willAccessValueForKey:@"myDecimal"]; … … 108 90 109 91 110 111 112 92 - (NSNumber*)myBoolean { 113 93 [self willAccessValueForKey:@"myBoolean"]; … … 279 259 [self setPrimitiveValue:value_ forKey:@"myString"]; 280 260 [self didChangeValueForKey:@"myString"]; 281 }282 283 284 285 286 287 288 - (NSData*)hairColorStorage {289 [self willAccessValueForKey:@"hairColorStorage"];290 NSData *result = [self primitiveValueForKey:@"hairColorStorage"];291 [self didAccessValueForKey:@"hairColorStorage"];292 return result;293 }294 295 - (void)setHairColorStorage:(NSData*)value_ {296 [self willChangeValueForKey:@"hairColorStorage"];297 [self setPrimitiveValue:value_ forKey:@"hairColorStorage"];298 [self didChangeValueForKey:@"hairColorStorage"];299 261 } 300 262 trunk/cocoa/mogenerator/mogeneratorTestMule/mogeneratorTestMule.xcodeproj/wolf.mode1
r165 r166 370 370 <key>TableOfContents</key> 371 371 <array> 372 <string>790C5 5C00B058A9A00BF93B7</string>372 <string>790C560B0B05919400BF93B7</string> 373 373 <string>1CE0B1FE06471DED0097A5F4</string> 374 <string>790C5 5C10B058A9A00BF93B7</string>374 <string>790C560C0B05919400BF93B7</string> 375 375 <string>1CE0B20306471E060097A5F4</string> 376 376 <string>1CE0B20506471E060097A5F4</string> … … 506 506 <key>WindowOrderList</key> 507 507 <array> 508 <string>1C0AD2B3069F1EA900FABCE6</string> 509 <string>79812D6F0B05091300DF4429</string> 508 510 <string>/Volumes/Island/wolf/code/sf/redshed/cocoa/mogenerator/mogeneratorTestMule/mogeneratorTestMule.xcodeproj</string> 509 511 </array> … … 525 527 <array> 526 528 <dict> 527 <key>BecomeActive</key>528 <true/>529 529 <key>ContentConfiguration</key> 530 530 <dict> … … 532 532 <string>1CD0528F0623707200166675</string> 533 533 <key>PBXProjectModuleLabel</key> 534 <string> _ParentMO.h</string>534 <string></string> 535 535 <key>StatusBarVisibility</key> 536 536 <true/> … … 588 588 <array> 589 589 <string>79812D6F0B05091300DF4429</string> 590 <string>79 812E2A0B050B6F00DF4429</string>590 <string>790C560D0B05919400BF93B7</string> 591 591 <string>1CD0528F0623707200166675</string> 592 592 <string>XCMainBuildResultsModuleGUID</string> … … 943 943 <array> 944 944 <string>1C0AD2B3069F1EA900FABCE6</string> 945 <string>79 812E360B050B9300DF4429</string>945 <string>790C560E0B05919400BF93B7</string> 946 946 <string>1CD0528B0623707200166675</string> 947 <string>79 812E370B050B9300DF4429</string>947 <string>790C560F0B05919400BF93B7</string> 948 948 </array> 949 949 <key>ToolbarConfiguration</key> trunk/cocoa/mogenerator/mogeneratorTestMule/mogeneratorTestMule.xcodeproj/wolf.pbxuser
r165 r166 35 35 ); 36 36 }; 37 PBXPerProjectTemplateStateSaveDate = 18491 2509;38 PBXWorkspaceStateSaveDate = 18491 2509;37 PBXPerProjectTemplateStateSaveDate = 184914308; 38 PBXWorkspaceStateSaveDate = 184914308; 39 39 }; 40 40 sourceControlManager = 79812C860B04F47200DF4429 /* Source Control */;
