Show
Ignore:
Timestamp:
03/15/07 01:14:15 (2 years ago)
Author:
rentzsch
Message:

[CHANGE] CoreData?+JRExtensions/mogenerator: moving position_ support back out of mogenerator machine template code generation and into a NSEntityDescription poser (NSEntityDescription_PositionSupport). Another chapter in the epic saga of "where can I put code that populates an attribute based on a fetch request without crashing Core Data?!?"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cocoa/CoreData+JRExtensions/CoreData+JRExtensions.m

    r216 r224  
    88 
    99- (id)initAndInsertIntoManagedObjectContext:(NSManagedObjectContext*)moc_ { 
    10         return [self initWithEntity:[[self class] entityDescriptionInManagedObjectContext:moc_] insertIntoManagedObjectContext:moc_]; 
     10        return [NSEntityDescription insertNewObjectForEntityForName:[[[self class] entityDescriptionInManagedObjectContext:moc_] name] 
     11                                                                                 inManagedObjectContext:moc_]; 
    1112} 
    1213