NSManagedObject

Undocumented

  • Class method to create an Instance of a specific NSManagedObject using a Dictionary

    Parameter

    Parameter dictionary: dictionary

    Parameter

    Parameter entityName: the name of the entity

    Parameter

    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: dictionary

    Declaration

    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 dictionaries

    Declaration

    Swift

    public func update(keyName: String, array: Array<Dictionary<String, AnyObject>>)

    Parameters

    array

    array of dictionaries