NSPersistentDocument.inc 2.1 KB

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