NSManagedObject-JRExtensions.h from redshed at Krugle
Show NSManagedObject-JRExtensions.h syntax highlighted
#import <Cocoa/Cocoa.h>
@interface NSManagedObject (JRExtensions)
+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (id)rootObjectInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (id)initAndInsertIntoManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSArray*)fetchAllInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSArray*)fetchAllInManagedObjectContext:(NSManagedObjectContext*)moc_ error:(NSError**)error_;
+ (NSString*)entityNameByHeuristic; // MyCoolObjectMO => @"MyCoolObject".
+ (NSEntityDescription*)entityDescriptionInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSFetchRequest*)fetchRequestForEntityInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSArray*)fetchWithTemplate:(NSString*)name_ substitutionVariables:(NSDictionary*)vars_ inManagedObjectContext:(NSManagedObjectContext*)moc_ error:(NSError**)error_;
@end
See more files for this project here