NSArray_CoreDataNSArray 的 CoreData 扩展
NSArray_CoreData 是使用 Swift 编写的 NSArray 的 CoreData 扩展。
http://cocoabite.com/post/113707969599/nsarray-coredata-happily-married
现已实现的方法:
NSArray.arrayWithManagedObjects(entityName:String,context:NSManagedObjectContext,error:NSErrorPointer)
NSArray.arrayWithManagedObjects(entityName:String,predicate:NSPredicate,context:NSManagedObjectContext,error:NSErrorPointer)
NSArray.arrayWithManagedObjects(entityName:String,predicate:NSPredicate,range:NSRange,context:NSManagedObjectContext,error:NSErrorPointer)
NSArray.arrayWithManagedObjects(entityName:String,predicate:NSPredicate,range:NSRange,sortDictionary:NSDictionary,context:NSManagedObjectContext,error:NSErrorPointer)
NSArray.arrayWithManagedObjects(entityName:String,predicate:NSPredicate)
NSArray.arrayWithManagedObjectsByFindingMax(entityName:String,propertyKeyPath:String,resultMaxValueKey:String,resultType:NSAttributeType,context:NSManagedObjectContext,error:NSErrorPointer)
NSArray.arrayWithManagedObjectsByFindingMax(entityName:String,predicate:NSPredicate,propertyKeyPath:String,resultMaxValueKey:String,resultType:NSAttributeType,context:NSManagedObjectContext,error:NSErrorPointer)
评论