Permalink
Commits on Oct 8, 2010
  1. Update machine templates to include fetched properties

    jdelStrother committed Oct 8, 2010
    Include nzhuk's fetched properties in the default templates
    
    Signed-off-by: Jonathan del Strother <jon.delStrother@audioboo.fm>
Commits on Oct 2, 2010
  1. fixed *** Terminating app due to uncaught exception 'NSInvalidArgumen…

    sync committed Oct 2, 2010
    …tException', reason: 'Cannot substitute a nil substitution dictionary.'
Commits on Sep 27, 2010
  1. Changed Xmod.applescript to better support --machine-dir, --human-dir…

    GoannaGuy committed Sep 27, 2010
    … and --output-dir comments... directories can be specified as either full or relative paths (relative to model file). Xcode group and file references are no longer deleted/re-added with every save. New files are added automatically. This allows group references to be moved or contain files that are not auto generated.
Commits on Aug 12, 2010
  1. [VERSION] 1.20

    rentzsch committed Aug 12, 2010
Commits on Jul 26, 2010
  1. Fixed bugs 8, 10, and 11; added machine-generated primitive accessors…

    seanm committed with rentzsch Jul 21, 2010
    … credit to my colleague paugus. Project was using 10.4 SDK, now uses Base SDK. Fixed some warnings. Removed some 10.4 support.
Commits on Jul 17, 2010
Commits on Jul 16, 2010
  1. [NEW] Xmo'd: model comments that start with -- are passed as args to …

    rentzsch committed Jul 16, 2010
    …mogenerator (David LeBer)
    
    i.e: Comments that look like:
    
    xmod
    --base-class 'MYMOBase'
    Blah blah, other comments, etc blah
    
    Will result in:
    do shell script /usr/bin/mogenerator --model 'PATH_TO_MODEL' --output-dir 'OUTPUT_PATH' --base-class 'MYMOBase'
Commits on Jul 5, 2010
  1. [CHANGELOG] v1.19.

    rentzsch committed Jul 5, 2010
  2. [VERSION] 1.19.

    rentzsch committed Jul 5, 2010
Commits on Jul 1, 2010
  1. [CHANGELOG] 1.18.

    rentzsch committed Jul 1, 2010
  2. [DEV] Update .gitignore

    rentzsch committed Jul 1, 2010
Commits on Jun 2, 2010
  1. - Added support for fetched properties

    nikita-zhuk committed with rentzsch Jun 2, 2010
    - To generate @property declarations for fetched properties in mogenerator templates, use the following template code:
    	<$foreach FetchedProperty noninheritedFetchedProperties do$>
    	@property (nonatomic, readonly) NSArray *<$FetchedProperty.name$>;
    	<$endif$><$endif$><$endforeach do$>
Commits on May 2, 2010
Commits on Mar 27, 2010
  1. [CHANGELOG] 1.7.

    rentzsch committed Mar 27, 2010
  2. [NEW] Add --orphaned option.

    rentzsch committed Jan 14, 2010
    Couple it with --model to get a listing of source files that no longer have corresponding entities in the model.
    
    The intent is to be able to pipe its output to xargs + git to remove deleted and renamed entities in one command, something like:
    
    $ mogenerator --model ../MyModel.xcdatamodel --orphaned | xargs git rm
  3. [NEW] +[Machine entityName] (for @drance) and +[Machine entityInManag…

    rentzsch committed Mar 27, 2010
    …edObjectContext:] (from Michael Dales).
Commits on Jan 7, 2010
  1. [FIX] Forgot to list "Missing space for fetch requests with multiple …

    rentzsch committed Jan 7, 2010
    …bindings" fix for 1.6.
Commits on Jan 4, 2010
  1. [DEV] Update README for 1.16.

    rentzsch committed Jan 4, 2010
  2. [CHANGE] Remove machine.m implementations of to-many relationship set…

    rentzsch committed Jan 4, 2010
    …ters.
    
    Mike Abdullah pointed out in http://www.mac-developer-network.com/columns/coredata/coredatajan10/ that Core Data on 10.5 and iPhone dynamically supply to-many relationship setters, so there's no reason to carry our own implementation. That's code that looks like this:
    
    	- (void)addChildren:(NSSet*)value_ {
    		[self willChangeValueForKey:@"children" withSetMutation:NSKeyValueUnionSetMutation usingObjects:value_];
    		[[self primitiveValueForKey:@"children"] unionSet:value_];
    		[self didChangeValueForKey:@"children" withSetMutation:NSKeyValueUnionSetMutation usingObjects:value_];
    	}
    
    	-(void)removeChildren:(NSSet*)value_ {
    		[self willChangeValueForKey:@"children" withSetMutation:NSKeyValueMinusSetMutation usingObjects:value_];
    		[[self primitiveValueForKey:@"children"] minusSet:value_];
    		[self didChangeValueForKey:@"children" withSetMutation:NSKeyValueMinusSetMutation usingObjects:value_];
    	}
    
    	- (void)addChildrenObject:(ChildMO*)value_ {
    		NSSet *changedObjects = [[NSSet alloc] initWithObjects:&value_ count:1];
    		[self willChangeValueForKey:@"children" withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects];
    		[[self primitiveValueForKey:@"children"] addObject:value_];
    		[self didChangeValueForKey:@"children" withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects];
    		[changedObjects release];
    	}
    
    	- (void)removeChildrenObject:(ChildMO*)value_ {
    		NSSet *changedObjects = [[NSSet alloc] initWithObjects:&value_ count:1];
    		[self willChangeValueForKey:@"children" withSetMutation:NSKeyValueMinusSetMutation usingObjects:changedObjects];
    		[[self primitiveValueForKey:@"children"] removeObject:value_];
    		[self didChangeValueForKey:@"children" withSetMutation:NSKeyValueMinusSetMutation usingObjects:changedObjects];
    		[changedObjects release];
    	}
    
    I've deleted the machine.m code and moved the method declarations into a category named $_CLASS_NAME(CoreDataGeneratedAccessors) in machine.h to avoid "method not implemented" build warnings.
    
    It probably would be nice to upgrade "contributed templates/rentzsch non-dynamic" to do the same (placing the machine.m code in
    	if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
    	endif
    blocks) but I'm not going to for this commit.
Commits on Dec 29, 2009
  1. [CHANGE] Xmo'd: change file ordering to human.m, human.h, machine.m, …

    rentzsch committed Dec 29, 2009
    …machine.h (from human.h, human.m, machine.h, machine.m).
  2. [NEW] machine.h template now produces type-safe scalar attribute prop…

    rentzsch committed Dec 29, 2009
    …erty declarations.
    
    For example, this is what was previously generated:
      @property (nonatomic, retain) NSNumber *age;
    Now this is:
      @property (nonatomic, retain) NSNumber *age;
      @property int ageValue;