Browse files

[NEW] mogenerator 1.1. Now allows .mm human files.

  • Loading branch information...
1 parent 592753e commit 5927202d764834c6c4d97b93302988cca63ae773 @rentzsch rentzsch committed Dec 25, 2006
Showing with 52 additions and 26 deletions.
  1. +8 −2 mogenerator.m
  2. +1 −1 mogenerator.xcodeproj/project.pbxproj
  3. +14 −16 mogenerator.xcodeproj/wolf.mode1
  4. +29 −7 mogenerator.xcodeproj/wolf.pbxuser
View
10 mogenerator.m
@@ -183,7 +183,7 @@ int main (int argc, const char * argv[]) {
assert([mfilePath length]);
break;
case opt_version:
- printf("mogenerator 1.0.5. By Jonathan 'Wolf' Rentzsch.\n");
+ printf("mogenerator 1.1. By Jonathan 'Wolf' Rentzsch.\n");
break;
case opt_help:
default:
@@ -237,14 +237,20 @@ int main (int argc, const char * argv[]) {
[generatedHumanH writeToFile:humanHFileName atomically:NO];
}
NSString *humanMFileName = [NSString stringWithFormat:@"%@.m", entityClassName];
+ NSString *humanMMFileName = [NSString stringWithFormat:@"%@.mm", entityClassName];
+ if (![fm regularFileExistsAtPath:humanMFileName] && [fm regularFileExistsAtPath:humanMMFileName]) {
+ // Allow .mm human files as well as .m files.
+ humanMFileName = humanMMFileName;
+ }
+
if ([fm regularFileExistsAtPath:humanMFileName]) {
if (machineDirtied)
[fm touchPath:humanMFileName];
} else {
[generatedHumanM writeToFile:humanMFileName atomically:NO];
}
- [mfileContent appendFormat:@"#include \"%@.m\"\n#include \"_%@.m\"\n", entityClassName, entityClassName];
+ [mfileContent appendFormat:@"#include \"%@\"\n#include \"%@\"\n", humanMFileName, machineMFileName];
}
}
}
View
2 mogenerator.xcodeproj/project.pbxproj
@@ -139,7 +139,7 @@
79D2C00E0ACFB81200F3F141 /* nsenumerate.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = nsenumerate.h; sourceTree = "<group>"; };
79D2C0570ACFBCB500F3F141 /* FoundationAdditions.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FoundationAdditions.h; sourceTree = "<group>"; };
79D2C0580ACFBCB500F3F141 /* FoundationAdditions.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = FoundationAdditions.m; sourceTree = "<group>"; };
- 8DD76FA10486AA7600D96B5E /* mogenerator */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mogenerator; sourceTree = BUILT_PRODUCTS_DIR; };
+ 8DD76FA10486AA7600D96B5E /* mogenerator */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = mogenerator; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
View
30 mogenerator.xcodeproj/wolf.mode1
@@ -204,10 +204,10 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>790C56760B06A8FA00BF93B7</string>
+ <string>798B56100B3F9A3E0017012B</string>
<key>history</key>
<array>
- <string>790C56700B06A11E00BF93B7</string>
+ <string>798B560F0B3F9A3E0017012B</string>
</array>
</dict>
<key>SplitCount</key>
@@ -223,7 +223,7 @@
<key>PBXModuleWindowStatusBarHidden2</key>
<false/>
<key>RubberWindowFrame</key>
- <string>339 43 1096 835 0 0 1440 878 </string>
+ <string>576 193 1096 835 0 0 1680 1028 </string>
</dict>
</dict>
</array>
@@ -259,8 +259,6 @@
<key>Layout</key>
<array>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
@@ -331,7 +329,7 @@
<real>292</real>
</array>
<key>RubberWindowFrame</key>
- <string>630 393 690 397 0 0 1440 878 </string>
+ <string>832 514 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
@@ -368,7 +366,7 @@
<key>Frame</key>
<string>{{0, 0}, {376, 0}}</string>
<key>RubberWindowFrame</key>
- <string>630 393 690 397 0 0 1440 878 </string>
+ <string>832 514 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
@@ -388,7 +386,7 @@
<key>Frame</key>
<string>{{0, 5}, {376, 351}}</string>
<key>RubberWindowFrame</key>
- <string>630 393 690 397 0 0 1440 878 </string>
+ <string>832 514 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
@@ -412,9 +410,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>790C56720B06A8FA00BF93B7</string>
+ <string>798B560D0B3F9A3E0017012B</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>790C56730B06A8FA00BF93B7</string>
+ <string>798B560E0B3F9A3E0017012B</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -550,10 +548,10 @@
<array>
<string>79D2BF1B0ACFAF4A00F3F141</string>
<string>790C56740B06A8FA00BF93B7</string>
- <string>/Volumes/Island/wolf/code/sf/redshed/cocoa/mogenerator/mogenerator.xcodeproj</string>
+ <string>/Users/wolf/code/sf/redshed/cocoa/mogenerator/mogenerator.xcodeproj</string>
</array>
<key>WindowString</key>
- <string>630 393 690 397 0 0 1440 878 </string>
+ <string>832 514 690 397 0 0 1680 1028 </string>
<key>WindowTools</key>
<array>
<dict>
@@ -583,7 +581,7 @@
<key>Frame</key>
<string>{{0, 0}, {500, 218}}</string>
<key>RubberWindowFrame</key>
- <string>36 355 500 500 0 0 1440 878 </string>
+ <string>45 495 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
@@ -609,7 +607,7 @@
<key>Frame</key>
<string>{{0, 223}, {500, 236}}</string>
<key>RubberWindowFrame</key>
- <string>36 355 500 500 0 0 1440 878 </string>
+ <string>45 495 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXBuildResultsModule</string>
@@ -632,14 +630,14 @@
<key>TableOfContents</key>
<array>
<string>79D2BF1B0ACFAF4A00F3F141</string>
- <string>790C56770B06A8FA00BF93B7</string>
+ <string>798B56110B3F9A3E0017012B</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.build</string>
<key>WindowString</key>
- <string>36 355 500 500 0 0 1440 878 </string>
+ <string>45 495 500 500 0 0 1680 1028 </string>
<key>WindowToolGUID</key>
<string>79D2BF1B0ACFAF4A00F3F141</string>
<key>WindowToolIsVisible</key>
View
36 mogenerator.xcodeproj/wolf.pbxuser
@@ -72,22 +72,24 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 184983836;
- PBXWorkspaceStateSaveDate = 184983836;
+ PBXPerProjectTemplateStateSaveDate = 188717308;
+ PBXWorkspaceStateSaveDate = 188717308;
};
perUserProjectItems = {
- 790C56700B06A11E00BF93B7 /* PBXBookmark */ = 790C56700B06A11E00BF93B7 /* PBXBookmark */;
- 790C56760B06A8FA00BF93B7 /* PBXTextBookmark */ = 790C56760B06A8FA00BF93B7 /* PBXTextBookmark */;
+ 790C56700B06A11E00BF93B7 = 790C56700B06A11E00BF93B7 /* PBXBookmark */;
+ 790C56760B06A8FA00BF93B7 = 790C56760B06A8FA00BF93B7 /* PBXTextBookmark */;
+ 798B560F0B3F9A3E0017012B /* PBXTextBookmark */ = 798B560F0B3F9A3E0017012B /* PBXTextBookmark */;
+ 798B56100B3F9A3E0017012B /* PBXTextBookmark */ = 798B56100B3F9A3E0017012B /* PBXTextBookmark */;
};
sourceControlManager = 79D2BF0B0ACFAE0700F3F141 /* Source Control */;
userBuildSettings = {
};
};
08FB7796FE84155DC02AAC07 /* mogenerator.m */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {1057, 3696}}";
- sepNavSelRange = "{1332, 25}";
- sepNavVisRect = "{{0, 353}, {1057, 777}}";
+ sepNavIntBoundsRect = "{{0, 0}, {1057, 3780}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRect = "{{0, 0}, {1057, 777}}";
sepNavWindowFrame = "{{339, 43}, {1096, 835}}";
};
};
@@ -105,6 +107,26 @@
vrLen = 1690;
vrLoc = 638;
};
+ 798B560F0B3F9A3E0017012B /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */;
+ name = noninheritedRelationships;
+ rLen = 25;
+ rLoc = 1332;
+ rType = 0;
+ vrLen = 1690;
+ vrLoc = 638;
+ };
+ 798B56100B3F9A3E0017012B /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */;
+ name = "mogenerator.m: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 1689;
+ vrLoc = 0;
+ };
79D2BF080ACFAE0100F3F141 /* mogenerator */ = {
isa = PBXExecutable;
activeArgIndex = 2147483647;

0 comments on commit 5927202

Please sign in to comment.