1{ Parsed from AppKit.framework NSPersistentDocument.h }
2
3
4{$ifdef TYPES}
5type
6  NSPersistentDocumentPtr = ^NSPersistentDocument;
7{$endif}
8
9{$ifdef CLASSES}
10
11type
12  NSPersistentDocument = objcclass external (NSDocument)
13  private
14    _managedObjectModel: NSManagedObjectModel;
15    _managedObjectContext: NSManagedObjectContext;
16    _store: id;
17    _pDocFlags: culong;
18    _relatedRequestURLs: id;
19    _reserved3: pointer;
20    _reserved4: pointer;
21  public
22    procedure setManagedObjectContext(newValue: NSManagedObjectContext); message 'setManagedObjectContext:';
23    function managedObjectContext: NSManagedObjectContext; message 'managedObjectContext';
24    function managedObjectModel: id; message 'managedObjectModel';
25    function configurePersistentStoreCoordinatorForURL_ofType_modelConfiguration_storeOptions_error (url: NSURL; fileType_: NSString; configuration: NSString; storeOptions: NSDictionary; error: NSErrorPtr): ObjCBOOL; message 'configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:'; { available in 10_5 }
26    function persistentStoreTypeForFileType (fileType_: NSString): NSString; message 'persistentStoreTypeForFileType:';
27    function writeToURL_ofType_forSaveOperation_originalContentsURL_error (absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; absoluteOriginalContentsURL: NSURL; error: NSErrorPtr): ObjCBOOL; message 'writeToURL:ofType:forSaveOperation:originalContentsURL:error:';
28    function readFromURL_ofType_error (absoluteURL: NSURL; typeName: NSString; error: NSErrorPtr): ObjCBOOL; message 'readFromURL:ofType:error:';
29    function revertToContentsOfURL_ofType_error (inAbsoluteURL: NSURL; inTypeName: NSString; outError: NSErrorPtr): ObjCBOOL; message 'revertToContentsOfURL:ofType:error:';
30  end;
31
32
33type
34  NSPersistentDocument_NSDeprecated = objccategory external name 'NSDeprecated' (NSPersistentDocument)
35    function configurePersistentStoreCoordinatorForURL_ofType_error (url: NSURL; fileType_: NSString; error: NSErrorPtr): ObjCBOOL; message 'configurePersistentStoreCoordinatorForURL:ofType:error:'; deprecated 'in 10_4, 10_5';
36  end;
37{$endif}
38
39