Permalink
Browse files

Inserted the template var dictionary into the merge engines as Templa…

…teVar
  • Loading branch information...
extremeboredom committed Jun 22, 2011
1 parent 1309706 commit a2bb6dbd15d5df2abc65f9ebdd22ecf915e38c81
Showing with 7 additions and 0 deletions.
  1. +7 −0 mogenerator.m
View
@@ -8,6 +8,7 @@
#import "mogenerator.h"
#import "RegexKitLite.h"
+static NSString *kTemplateVar = @"TemplateVar";
NSString *gCustomBaseClass;
@interface NSEntityDescription (fetchedPropertiesAdditions)
@@ -596,6 +597,12 @@ - (int) application: (DDCliApplication *) app
MiscMergeEngine *humanM = engineWithTemplatePath([self appSupportFileNamed:@"human.m.motemplate"]);
assert(humanM);
+ // Add the template var dictionary to each of the merge engines
+ [machineH setEngineValue:templateVar forKey:kTemplateVar];
+ [machineM setEngineValue:templateVar forKey:kTemplateVar];
+ [humanH setEngineValue:templateVar forKey:kTemplateVar];
+ [humanM setEngineValue:templateVar forKey:kTemplateVar];
+
NSMutableArray *humanMFiles = [NSMutableArray array],
*humanHFiles = [NSMutableArray array],
*machineMFiles = [NSMutableArray array],

0 comments on commit a2bb6db

Please sign in to comment.