|
Revision 246, 1.9 kB
(checked in by rentzsch, 1 year ago)
|
[FIX] +[NSManagedObject newInManagedObjectContext:] had an incorrect extraneous -autorelease. Thanks to Pierre Bernard for finding the bug.
[NEW] Add MIT license header.
[CHANGE] Remove CoreData?+PositionSupport?.m. I have a different solution nowadays.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
#import <Cocoa/Cocoa.h> |
|---|
| 9 |
|
|---|
| 10 |
@interface NSManagedObject (JRExtensions) |
|---|
| 11 |
+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 12 |
- (id)initAndInsertIntoManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 13 |
|
|---|
| 14 |
+ (id)rootObjectInManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 15 |
+ (id)rootObjectInManagedObjectContext:(NSManagedObjectContext*)moc_ error:(NSError**)error_; |
|---|
| 16 |
|
|---|
| 17 |
+ (NSArray*)fetchAllInManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 18 |
+ (NSArray*)fetchAllInManagedObjectContext:(NSManagedObjectContext*)moc_ error:(NSError**)error_; |
|---|
| 19 |
|
|---|
| 20 |
+ (NSString*)entityNameByHeuristic; |
|---|
| 21 |
+ (NSEntityDescription*)entityDescriptionInManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 22 |
+ (NSFetchRequest*)fetchRequestForEntityInManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 23 |
|
|---|
| 24 |
+ (NSString*)defaultSortKeyWithManagedObjectContext:(NSManagedObjectContext*)moc_; |
|---|
| 25 |
|
|---|
| 26 |
- (NSString*)objectURLID; |
|---|
| 27 |
@end |
|---|
| 28 |
|
|---|
| 29 |
@interface NSManagedObjectContext (JRExtensions) |
|---|
| 30 |
- (NSArray*)executeFetchRequestNamed:(NSString*)fetchRequestName_; |
|---|
| 31 |
- (NSArray*)executeFetchRequestNamed:(NSString*)fetchRequestName_ error:(NSError**)error_; |
|---|
| 32 |
- (NSArray*)executeFetchRequestNamed:(NSString*)fetchRequestName_ substitutionVariables:(NSDictionary*)variables_; |
|---|
| 33 |
- (NSArray*)executeFetchRequestNamed:(NSString*)fetchRequestName_ substitutionVariables:(NSDictionary*)variables_ error:(NSError**)error_; |
|---|
| 34 |
- (id)executeSingleResultFetchRequestNamed:(NSString*)fetchRequestName_ substitutionVariables:(NSDictionary*)variables_ error:(NSError**)error_; |
|---|
| 35 |
|
|---|
| 36 |
- (id)objectWithURLID:(NSString*)url_; |
|---|
| 37 |
@end |
|---|
| 38 |
|
|---|