summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSPersistentDocument.inc
blob: defd13e21f9f4489731d5f588e2e0769efa3bd07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{ Parsed from Appkit.framework NSPersistentDocument.h }

{$ifdef TYPES}
{$ifndef NSPERSISTENTDOCUMENT_PAS_T}
{$define NSPERSISTENTDOCUMENT_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPERSISTENTDOCUMENT_PAS_R}
{$define NSPERSISTENTDOCUMENT_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPERSISTENTDOCUMENT_PAS_F}
{$define NSPERSISTENTDOCUMENT_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPERSISTENTDOCUMENT_PAS_S}
{$define NSPERSISTENTDOCUMENT_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPersistentDocument = objcclass;
  NSPersistentDocumentPointer = ^NSPersistentDocument;
  NSPersistentDocumentPtr = NSPersistentDocumentPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPERSISTENTDOCUMENT_PAS_C}
{$define NSPERSISTENTDOCUMENT_PAS_C}

{ NSPersistentDocument }
  NSPersistentDocument = objcclass external (NSDocument)
  private
    _managedObjectModel: NSManagedObjectModel;
    _managedObjectContext: NSManagedObjectContext;
    _store: id;
    _reserved: Pointer;
    _reserved2: Pointer;
    _reserved3: Pointer;
    _reserved4: Pointer;
    
  public
    function managedObjectContext: NSManagedObjectContext; message 'managedObjectContext';
    procedure setManagedObjectContext(managedObjectContext_: NSManagedObjectContext); message 'setManagedObjectContext:';
    function managedObjectModel: id; message 'managedObjectModel';
    function configurePersistentStoreCoordinatorForURL_ofType_modelConfiguration_storeOptions_error(url: NSURL; fileType_: NSString; configuration: NSString; storeOptions: NSDictionary; error: NSErrorPointer): Boolean; message 'configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:';
    function persistentStoreTypeForFileType(fileType_: NSString): NSString; message 'persistentStoreTypeForFileType:';
    function writeToURL_ofType_forSaveOperation_originalContentsURL_error(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; absoluteOriginalContentsURL: NSURL; error: NSErrorPointer): Boolean; message 'writeToURL:ofType:forSaveOperation:originalContentsURL:error:';
    function readFromURL_ofType_error(absoluteURL: NSURL; typeName: NSString; error: NSErrorPointer): Boolean; message 'readFromURL:ofType:error:';
    function revertToContentsOfURL_ofType_error(inAbsoluteURL: NSURL; inTypeName: NSString; outError: NSErrorPointer): Boolean; message 'revertToContentsOfURL:ofType:error:';
  end;

{ NSDeprecated_NSPersistentDocumentCategory }
  NSDeprecated_NSPersistentDocumentCategory = objccategory external name 'NSDeprecated' (NSPersistentDocument)
    function configurePersistentStoreCoordinatorForURL_ofType_error(url: NSURL; fileType_: NSString; error: NSErrorPointer): Boolean; message 'configurePersistentStoreCoordinatorForURL:ofType:error:'; deprecated 'in Mac OS X 10.5 and later';
  end;

{$endif}
{$endif}