Added missing NSOrderedSet methods (insert, remove, replace, etc) per Issue #75 comments.
Fixed issues in previous code.

See Issue #75, comment by @batkuip "Those methods are trickier to implement because the mutable set accessor uses mutableSetValueForKey which seems to call the insertObject:atIndex internally causing it loop forever."

This code creates a temporary mutable set using the ordered set (not the mutable set which loops as noted), making sure to call appropriate KVC methods.

Credit for original code/idea goes to @Dmitry Makarenkoless and @JLust on StackOverFlow (http://stackoverflow.com/questions/7385439/exception-thrown-in-nsorderedset-generated-accessors).
Remove unnecessary empty lines in the generated files.
Add MIT LICENSE file to make it clear templates are under the same license.

https://github.com/rentzsch/mogenerator/issues/186
Merge pull request #184 from smic/empty_lines

[NEW] Remove unnecessary empty lines in the generated files. (Stephan Michels)
Use a template variable to support module @import syntax

Without this fix, I get a warning of "treating #import as an import of module 'CoreData' [-Wauto-import]". This change allows you to include the template variable as such: "--template-var modules=true" when running mogenerator to output the imports of CoreData in the new module syntax: @import CoreData;
Merge pull request #194 from danielctull-forks/import

[NEW] Specify `--template-var modules=true` option to avoid `treating #import as an import of module 'CoreData' [-Wauto-import]" warning`. (Daniel Tull)
Fix for warnings in iOS 8

iOS 8 changes objectID from a getter to a @property.

This causes the following warnings with the old template:

"Type of property 'objectID' does not match type of accessor 'objectID'"
Add preliminary Swift support
Added entityName class method. Added some pragma marks (even though Xcode doesn't use them yet)
Changed self.dynamicType in the convenience init method to use the full class name (can't assess self before the call to self.init there)
Fix issue when using unordered to-many relationship
Merge pull request #203 from a2/master

[NEW] Preliminary Swift support. (Alexsander Akers)
Merge pull request #201 from thusfresh/iOS8Fix

[CHANGE] iOS 8 changes objectID from a getter into a property, resulting in a warning. Templates updated to match. (Ryan Johnson)
Fixed issue where 'String' was being inserted instead of 'NSString' even for good ol' Objective-C files
Swift -> String, Obj-C -> NSString using slightly less convoluted logic
Merge branch 'master' of https://github.com/DaveWoodCom/mogenerator
IMPLEMENT support of custom scalar types (/!\ swift not supported)
IMPLEMENT allows custom scalar type for all scalar types
Updated script to stop assertion on line mogenerator.m:529