Skip to content
This repository
Browse code

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

…teVar
  • Loading branch information...
commit a2bb6dbd15d5df2abc65f9ebdd22ecf915e38c81 1 parent 1309706
extremeboredom extremeboredom authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 mogenerator.m
7 mogenerator.m
@@ -8,6 +8,7 @@
8 8 #import "mogenerator.h"
9 9 #import "RegexKitLite.h"
10 10
  11 +static NSString *kTemplateVar = @"TemplateVar";
11 12 NSString *gCustomBaseClass;
12 13
13 14 @interface NSEntityDescription (fetchedPropertiesAdditions)
@@ -596,6 +597,12 @@ - (int) application: (DDCliApplication *) app
596 597 MiscMergeEngine *humanM = engineWithTemplatePath([self appSupportFileNamed:@"human.m.motemplate"]);
597 598 assert(humanM);
598 599
  600 + // Add the template var dictionary to each of the merge engines
  601 + [machineH setEngineValue:templateVar forKey:kTemplateVar];
  602 + [machineM setEngineValue:templateVar forKey:kTemplateVar];
  603 + [humanH setEngineValue:templateVar forKey:kTemplateVar];
  604 + [humanM setEngineValue:templateVar forKey:kTemplateVar];
  605 +
599 606 NSMutableArray *humanMFiles = [NSMutableArray array],
600 607 *humanHFiles = [NSMutableArray array],
601 608 *machineMFiles = [NSMutableArray array],

0 comments on commit a2bb6db

Please sign in to comment.
Something went wrong with that request. Please try again.