NSManagedObject
Undocumented
-
Class method to create an Instance of a specific NSManagedObject using a Dictionary
Parameter
Parameter dictionary: dictionaryParameter
Parameter entityName: the name of the entityParameter
Parameter context: NSManagedObjectContext- Return: NSManagedObject
Declaration
Swift
@objc public class func instanceWithDictionary(dictionary: Dictionary<String, AnyObject>, entityName: String, context: NSManagedObjectContext) -> NSManagedObject?Parameters
dictionarydictionary
entityNamethe name of the entity
contextNSManagedObjectContext
-
Update current NSManagedObject with a dictionary
Parameter
Parameter dictionary: dictionaryDeclaration
Swift
@objc public func updateWithDictionary(dictionary: Dictionary<String, AnyObject>)Parameters
dictionarydictionary
-
called when a value is an array of NSManagedObjects. To be overridden
Parameter
Parameter array: array of dictionariesDeclaration
Swift
public func update(keyName: String, array: Array<Dictionary<String, AnyObject>>)Parameters
arrayarray of dictionaries
NSManagedObject Extension Reference