Permalink
Commits on Jan 4, 2010
  1. [DEV] Update README for 1.16.

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

    …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.
    committed Jan 4, 2010
Commits on Dec 29, 2009
  1. [CHANGE] Xmo'd: change file ordering to human.m, human.h, machine.m, …

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

    …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;
    committed Dec 29, 2009
Commits on Nov 3, 2009
  1. Fixed fetch requests with multiple bindings.

    Frederik Seiffert committed with Nov 3, 2009
Commits on Nov 2, 2009
  1. [DEV] Update README for 1.15.

    committed Nov 2, 2009
  2. [DEV] Bump version to 1.15.

    committed Nov 2, 2009
  3. [CHANGE] Xmo'd: add .h human+machine header files to project (in addi…

    …tion to current .m + .mm files). Closes #1.
    committed Nov 2, 2009
Commits on Oct 17, 2009
  1. [FIX] Log fetch-request-wrapper errors to NSLog on iPhone since it la…

    …cks -[NSApp presentError:].
    committed Oct 17, 2009
Commits on Oct 14, 2009
Commits on Oct 9, 2009
  1. [DEV] Add README.

    committed Oct 9, 2009
  2. [NEW] Switch default machine templates to use @dynamic. Thus generate…

    …d code now requires 10.5. Old non-@dynamic templates moved to contributed templates/rentzsch non-dynamic. (Pierre Bernard)
    committed Oct 9, 2009
  3. [NEW] Xmo'd running under Snow Leopard 10.6.1 + Xcode 3.2.1. Dropping…

    … ppc support for now, may revisit.
    committed Oct 9, 2009
Commits on Oct 8, 2009
  1. [DEV] Bump mogeneratorTestMule to be compatible with 10.6 Snow Leopar…

    …d (GCC_VERSION = 4.0) and mogenerator 1.14 (switch to +insertInManagedObjectContext:).
    committed Oct 8, 2009
  2. [DEV] Bump version to 1.14.

    Set compiler to gcc 4.0 to be able to compile on 10.6 Snow Leopard.
    Update copyright year.
    Link to github project page.
    committed Oct 8, 2009
  3. [FIX] Remove reference to CoreData+JRExtensions in mogeneratorTestMul…

    …e -- we don't need it anymore.
    committed Oct 8, 2009
Commits on May 13, 2009
  1. changed newInManagedObjectContext: to insertInManagedObjectContext: t…

    …o satisfy the LLVM/Clang static analyser
    
    (see: http://clang.llvm.org/StaticAnalysis.html)
    
    *** after this change your code will probably not compile anymore ***
    
    Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
    Ruotger Skupin committed with May 13, 2009
Commits on Apr 10, 2009
  1. [CHANGE] Add MiscMerge directly to project (back in the rentzsch.com …

    …svn+trac days it was in its own peer folder).
    committed Apr 10, 2009
  2. [NEW] Xmod: Work with all versions of Xcode 3.1 by changing version-c…

    …hecking to hasPrefix:@"3.1".
    committed Apr 10, 2009
Commits on Mar 18, 2009
  1. [DEV] Add .gitignore.

    committed Mar 18, 2009
Commits on Oct 14, 2008
  1. [NEW] mogenerator 1.13.1: fix typo introduced in r314 where I was usi…

    …ng -(will|Did)AccessValueForKey: in relationship NSMutableSet getter when I should have been using -(will|Did)AChangeValueForKey:. (Pascal Augustin)
    committed Oct 14, 2008
Commits on Oct 12, 2008
Commits on Oct 11, 2008