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
dictionary
dictionary
entityName
the name of the entity
context
NSManagedObjectContext
-
Update current NSManagedObject with a dictionary
Parameter
Parameter dictionary: dictionaryDeclaration
Swift
@objc public func updateWithDictionary(dictionary: Dictionary<String, AnyObject>)
Parameters
dictionary
dictionary
-
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
array
array of dictionaries