CocoaPods trunk is moving to be read-only. Read more on the blog, there are 3 months to go.

DATAObjectIDs 0.7.0

DATAObjectIDs 0.7.0

TestsTested ✓
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SwiftSwift Version 3.0
SPMSupports SPM ✓

Maintained by Elvis Nuñez.



DATAObjectIDs

Usage

Dictionary of any attribute as key and NSManagedObjectID as values.

public class func objectIDs(inEntityNamed entityName: String, withAttributesNamed attributeName: String, context: NSManagedObjectContext) -> [AnyHashable : NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, withAttributesNamed attributeName: String, context: NSManagedObjectContext, predicate: NSPredicate?) -> [AnyHashable : NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, withAttributesNamed attributeName: String, context: NSManagedObjectContext, sortDescriptors: [NSSortDescriptor]) -> [AnyHashable : NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, withAttributesNamed attributeName: String, context: NSManagedObjectContext, predicate: NSPredicate, sortDescriptors: [NSSortDescriptor]) -> [AnyHashable : NSManagedObjectID]

Array of NSManagedObjectIDs.

public class func objectIDs(inEntityNamed entityName: String, context: NSManagedObjectContext) -> [NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, context: NSManagedObjectContext, predicate: NSPredicate) -> [NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, context: NSManagedObjectContext, sortDescriptors: [NSSortDescriptor]) -> [NSManagedObjectID]

public class func objectIDs(inEntityNamed entityName: String, context: NSManagedObjectContext, predicate: NSPredicate, sortDescriptors: [NSSortDescriptor]) -> [NSManagedObjectID]

Array of any attributes.

public class func attributes(inEntityNamed entityName: String, attributeName: String, context: NSManagedObjectContext) -> [Any]

public class func attributes(inEntityNamed entityName: String, attributeName: String, context: NSManagedObjectContext, predicate: NSPredicate) -> [Any]

public class func attributes(inEntityNamed entityName: String, attributeName: String, context: NSManagedObjectContext, sortDescriptors: [NSSortDescriptor]) -> [Any]

public class func attributes(inEntityNamed entityName: String, attributeName: String, context: NSManagedObjectContext, predicate: NSPredicate, sortDescriptors: [NSSortDescriptor]) -> [Any]

Installation

DATAObjectIDs is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DATAObjectIDs'

Author

SyncDB, [email protected]

License

DATAObjectIDs is available under the MIT license. See the LICENSE file for more info.