Skip to content
Browse files

Merge branch 'release/1.27'

  • Loading branch information...
2 parents 6746f96 + c8123ae commit 14dc5890ab6b4f562330d9d64a09ce442605bcda @rentzsch committed
Showing with 787 additions and 732 deletions.
  1. +32 −0 README.markdown
  2. +25 −25 mogenerator.h
  3. +728 −705 mogenerator.m
  4. +2 −2 mogenerator.xcodeproj/project.pbxproj
View
32 README.markdown
@@ -20,6 +20,38 @@ Xmo'd works by noticing when your `*.xcdatamodel` is saved. If the model file's
## Version History
+### v1.27: Mon Nov 12 2012 [download](http://github.com/downloads/rentzsch/mogenerator/mogenerator-1.27.dmg)
+
+* [NEW] You can now pass .xcdatamodeld paths to mogenerator. mogenerator will look inside the directory, read its hidden `.xccurrentversion` file and use the "current" .xcdatamodel file. ([Alexander Zats](https://github.com/rentzsch/mogenerator/pull/102))
+
+* [NEW] Replaced mogenerator's previous testing system (the test mule) with a new Rakefile-based system that eases building & testing from the current source tree and tests both MRC and ARC. ([rentzsch](https://github.com/rentzsch/mogenerator/blob/master/test/Test%20README.markdown))
+
+* [NEW] Property declarations generated from attributes can now be qualified as readonly by adding a `mogenerator.readonly` to an attribute's userinfo. ([crispinb](https://github.com/rentzsch/mogenerator/pull/111))
+
+* [NEW] `--configuration` option that limits generation to the specified configuration. ([Sixten Otto](https://github.com/rentzsch/mogenerator/pull/104))
+
+* [CHANGE] Optimized `keyPathsForValuesAffectingValueForKey:` generated code (returns after first match). ([Sean M](https://github.com/rentzsch/mogenerator/issues/98))
+
+* [CHANGE] Add default private class extension to human source template. ([Jonas Schnelli](https://github.com/rentzsch/mogenerator/pull/95))
+
+* [FIX] Align generated code's pointer asterisks more consistently. ([Tony Arnold](https://github.com/rentzsch/mogenerator/pull/103))
+
+* [FIX] Missing import when using mogenerator.customBaseClass entity userinfo key. ([Thomas Guthrie](https://github.com/rentzsch/mogenerator/pull/109))
+
+* [FIX] Handle case in generated fetch request wrapper machine code when predicate variables are repeated. ([Sergei Winitzki](https://github.com/rentzsch/mogenerator/pull/125))
+
+* [FIX] Explicitly set mogenerator project's deployment target to 10.6 to avoid segfaulting on 10.8 for some reason. [issue 121](https://github.com/rentzsch/mogenerator/issues/121) (reported by Sixten Otto, diagnosed by Florian Bürger)
+
+* [FIX] Cast to unsigned in machine source to avoid clang format string warning. ([rentzsch](https://github.com/rentzsch/mogenerator/commit/82dca52d3fa8082163931141b4e8257f8be8191c))
+
+* [FIX] Don't attempt to report errors through -[NSApp reportError:] in generated machine source unless targeting AppKit. ([rentzsch](https://github.com/rentzsch/mogenerator/commit/0f4d8295e98832f5acdab8d24d3193a1141839a8))
+
+* [WORKAROUND] Recent versions of Xcode use an empty string to mark entities that do not have a custom subclass. ([Matthias Bauch](https://github.com/rentzsch/mogenerator/pull/132))
+
+* [CHANGE] make_installer.command: assume PackageMaker now lives in /Applications/Utilities. ([rentzsch](https://github.com/rentzsch/mogenerator/commit/aa4d3d5ba274985bd0a9f636efb0c5c82ce33381))
+
+
+
### v1.26: Thu Apr 12 2012 [download](http://github.com/downloads/rentzsch/mogenerator/mogenerator-1.26.dmg)
* [FIX] Missing space in transformable attribute codegen. [issue 89](https://github.com/rentzsch/mogenerator/issues/89) ([Daniel Tull](https://github.com/rentzsch/mogenerator/issues/89), [Kris Markel](https://github.com/rentzsch/mogenerator/pull/99), [Whitney Young](https://github.com/rentzsch/mogenerator/pull/101))
View
50 mogenerator.h
@@ -1,9 +1,9 @@
/*******************************************************************************
- mogenerator.h - <http://github.com/rentzsch/mogenerator>
- Copyright (c) 2006-2012 Jonathan 'Wolf' Rentzsch: <http://rentzsch.com>
- Some rights reserved: <http://opensource.org/licenses/mit-license.php>
+ mogenerator.h - <http://github.com/rentzsch/mogenerator>
+ Copyright (c) 2006-2012 Jonathan 'Wolf' Rentzsch: <http://rentzsch.com>
+ Some rights reserved: <http://opensource.org/licenses/mit-license.php>
- ***************************************************************************/
+ ***************************************************************************/
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@@ -17,7 +17,7 @@
#import "DDCommandLineInterface.h"
@interface NSManagedObjectModel (entitiesWithACustomSubclassVerbose)
-- (NSArray*)entitiesWithACustomSubclassInConfiguration:(NSString *)configuration_ verbose:(BOOL)verbose_;
+- (NSArray*)entitiesWithACustomSubclassInConfiguration:(NSString*)configuration_ verbose:(BOOL)verbose_;
@end
@interface NSEntityDescription (customBaseClass)
@@ -54,24 +54,24 @@
@end
@interface MOGeneratorApp : NSObject <DDCliApplicationDelegate> {
- NSString *origModelBasePath;
- NSString *tempMOMPath;
- NSManagedObjectModel *model;
- NSString *configuration;
- NSString *baseClass;
- NSString *baseClassImport;
- NSString *baseClassForce;
- NSString *includem;
- NSString *includeh;
- NSString *templatePath;
- NSString *outputDir;
- NSString *machineDir;
- NSString *humanDir;
- NSString *templateGroup;
- BOOL _help;
- BOOL _version;
- BOOL _listSourceFiles;
- BOOL _orphaned;
- NSMutableDictionary *templateVar;
+ NSString *origModelBasePath;
+ NSString *tempGeneratedMomFilePath;
+ NSManagedObjectModel *model;
+ NSString *configuration;
+ NSString *baseClass;
+ NSString *baseClassImport;
+ NSString *baseClassForce;
+ NSString *includem;
+ NSString *includeh;
+ NSString *templatePath;
+ NSString *outputDir;
+ NSString *machineDir;
+ NSString *humanDir;
+ NSString *templateGroup;
+ BOOL _help;
+ BOOL _version;
+ BOOL _listSourceFiles;
+ BOOL _orphaned;
+ NSMutableDictionary *templateVar;
}
-@end
+@end
View
1,433 mogenerator.m
728 additions, 705 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
4 mogenerator.xcodeproj/project.pbxproj
@@ -62,7 +62,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
- 08FB7796FE84155DC02AAC07 /* mogenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = mogenerator.m; sourceTree = "<group>"; usesTabs = 1; };
+ 08FB7796FE84155DC02AAC07 /* mogenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = mogenerator.m; sourceTree = "<group>"; usesTabs = 0; };
08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
32A70AAB03705E1F00C91783 /* mogenerator_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mogenerator_Prefix.pch; sourceTree = "<group>"; };
457C26C7139A1EF900BF00DD /* MKCDAGNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MKCDAGNode.h; sourceTree = "<group>"; };
@@ -83,7 +83,7 @@
7931E67710FE982500175784 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = usr/lib/libicucore.dylib; sourceTree = SDKROOT; };
7931E67910FE984F00175784 /* RegexKitLite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RegexKitLite.h; sourceTree = "<group>"; };
7931E67A10FE984F00175784 /* RegexKitLite.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RegexKitLite.m; sourceTree = "<group>"; };
- 79A586510E48E8B400474C35 /* mogenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mogenerator.h; sourceTree = "<group>"; usesTabs = 1; };
+ 79A586510E48E8B400474C35 /* mogenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mogenerator.h; sourceTree = "<group>"; usesTabs = 0; };
79D2BF3E0ACFB25B00F3F141 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
79D2BF520ACFB51A00F3F141 /* _MiscMergeBreakCommand.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = _MiscMergeBreakCommand.h; path = ../MiscMerge/_MiscMergeBreakCommand.h; sourceTree = "<group>"; };
79D2BF530ACFB51A00F3F141 /* _MiscMergeBreakCommand.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = _MiscMergeBreakCommand.m; path = ../MiscMerge/_MiscMergeBreakCommand.m; sourceTree = "<group>"; };

0 comments on commit 14dc589

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