25#ifndef _NSManagedObject_h_
26#define _NSManagedObject_h_
28#import <Foundation/NSObject.h>
29#import <Foundation/NSArray.h>
31#import <Foundation/NSKeyValueObserving.h>
33@class NSString, NSMutableDictionary, NSDictionary, NSSet, NSError;
39 NSManagedObjectContext * _context;
41 NSEntityDescription * _entity;
47 NSMutableDictionary * _changedValues;
50 NSMutableDictionary * _data;
53+ (BOOL) automaticallyNotifiesObserversForKey: (NSString *) aKey;
56- (id) initWithEntity: (NSEntityDescription *) anEntity
57 insertIntoManagedObjectContext: (NSManagedObjectContext *) aContext;
60- (NSManagedObjectContext *) managedObjectContext;
61- (NSEntityDescription *) entity;
71- (void) awakeFromFetch;
72- (void) awakeFromInsert;
73- (NSDictionary *) changedValues;
74- (NSDictionary *) commitedValuesForKeys: (NSArray *) someKeys;
77- (void) didTurnIntoFault;
80- (id) valueForKey: (NSString *) aKey;
81- (void) setValue: (
id) aValue forKey: (NSString *) aKey;
82- (id) primitiveValueForKey: (NSString *) aKey;
83- (void) setPrimitiveValue: (
id) aPrimitiveValue forKey: (NSString *) aKey;
86- (BOOL) validateValue: (
id *) value
87 forKey: (NSString *) aKey
88 error: (NSError **) anErrorPointer;
89- (BOOL) validateForDelete: (NSError **) anErrorPointer;
90- (BOOL) validateForInsert: (NSError **) anErrorPointer;
91- (BOOL) validateForUpdate: (NSError **) anErrorPointer;
94- (void) didAccessValueForKey: (NSString *) aKey;
95- (void) didChangeValueForKey: (NSString *) aKey;
96- (void) didChangeValueForKey: (NSString *) aKey
97 withSetMutation: (NSKeyValueSetMutationKind) aMutationKind
98 usingObjects: (NSSet *) someObjects;
99- (
void *) observationInfo;
100- (void) setObservationInfo: (
void *) someInfo;
101- (void) willAccessValueForKey: (NSString *) aKey;
102- (void) willChangeValueForKey: (NSString *) aKey;
103- (void) willChangeValueForKey: (NSString *) aKey
104 withSetMutation: (NSKeyValueSetMutationKind) aMutationKind
105 usingObjects: (NSSet *) someObjects;
For implementation notes see "Documentation/NSManagedObjectID.txt" in the source distribution of the ...
Validates whether value'' is a valid value forattribute'', returning YES if it is,...