Changeset 216

Show
Ignore:
Timestamp:
02/19/07 16:24:29 (2 years ago)
Author:
rentzsch
Message:

[FIX] CoreData?+JRExtensions: Switch from -[NSManagedObjectContext objectWithID:] to -[NSManagedObjectContext objectRegisteredForID:]. Ref: http://www.codepoetry.net/2007/02/19/objectwithid_vs_objectregisteredforid

Files:

Legend:

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

    r182 r216  
    195195        NSAssert1(url, @"[NSURL URLWithString:@\"%@\"] failed", url_); 
    196196        NSManagedObjectID *objectID = [[self persistentStoreCoordinator] managedObjectIDForURIRepresentation:url]; 
    197         return objectID ? [self objectWithID:objectID] : nil; 
     197        return objectID ? [self objectRegisteredForID:objectID] : nil; 
    198198} 
    199199