Nu Class Reference

NSManagedObject Extensions

Declared in: nu/coredata.nu

ActiveRecord-style extensions to NSManagedObject. These are most useful for entity-specific subclasses of NSManagedObject. When an entity is looked up by name, it must be defined in the application delegate's managed object model.

Methods

+ (id) objectWithIdentifier: (id) identifier
Get an object with a specified identifier and the entity with the same name as this class. This method allows an object to be associated with a short integer identifier. Identifiers are represented as NSStrings. It works by extracting the identifier from the object's URIRepresentation. If the implementation of URIRepresentation changes, this will break.

in nu/coredata.nu

+ (id) objectsWithEntity: (id) entityName
propertyValues: (id) pairs
sortDescriptors: (id) sortDescriptors
Find objects of a named entity with specified property values and sort descriptors.

in nu/coredata.nu

+ (id) objectsWithEntity: (id) entityName
property: (id) property
value: (id) value
Find objects of a named entity with a specified property value.

in nu/coredata.nu

+ (id) objectsWithPropertyValues: (id) pairs
sortDescriptors: (id) sortDescriptors
Find objects with specified property values and sort descriptors using the class name as the entity name.

in nu/coredata.nu

+ (id) objectsWithProperty: (id) property
value: (id) value
Find objects with a specified property value using the class name as the entity name.

in nu/coredata.nu

+ (id) objectWithProperty: (id) property
value: (id) value
Find objects with a specified property value using the class name as the entity name.

in nu/coredata.nu

+ (id) objects
Find objects using the class name as the entity name.

in nu/coredata.nu

+ (id) createObject
Create an object for the entity with the same name as this class.

in nu/coredata.nu

- (id) identifier
Get an identifier for an object. This method allows an object to be associated with a short integer identifier. Identifiers are represented as NSStrings. It works by extracting the identifier from the object's URIRepresentation. If the implementation of URIRepresentation changes, this will break.

in nu/coredata.nu

- (id) delete
Delete an object.

in nu/coredata.nu

- (id) handleUnknownMessage: (id) method
withContext: (id) context
Attempt to use the name of an unknown message as a key.

in nu/coredata.nu

- (id) hasValueForKey: (id) key
Return non-nil if the object has a property for the specified key

in nu/coredata.nu