summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSController.inc
blob: 8d6353d5c2f68ac0337737b88a902e3cd8c9b5d4 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{ Parsed from Appkit.framework NSController.h }

{$ifdef TYPES}
{$ifndef NSCONTROLLER_PAS_T}
{$define NSCONTROLLER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSCONTROLLER_PAS_R}
{$define NSCONTROLLER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSCONTROLLER_PAS_F}
{$define NSCONTROLLER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCONTROLLER_PAS_S}
{$define NSCONTROLLER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSController = objcclass;
  NSControllerPointer = ^NSController;
  NSControllerPtr = NSControllerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSCONTROLLER_PAS_C}
{$define NSCONTROLLER_PAS_C}

{ NSController }
  NSController = objcclass external (NSObject, NSCodingProtocol)
  private
    _reserved: Pointer;
    _reserved2: Pointer;
    _specialPurposeType: cint;
    _bindingAdaptor: id;
    _editors: NSMutableArray;
    _declaredKeys: NSMutableArray;
    _dependentKeyToModelKeyTable: NSMutableDictionary;
    _modelKeyToDependentKeyTable: NSMutableDictionary;
    _modelKeysToRefreshEachTime: NSMutableArray;
    __bindingsControllerFlags: record
      case byte of
       0: (_anonbitfield_NSController0: cuint);
       1: (data: bitpacked record
        _alwaysPresentsApplicationModalAlerts: 0..1;
        _refreshesAllModelKeys: 0..1;
        _multipleObservedModelObjects: 0..1;
        _isEditing: 0..1;
        _reservedController: 0..((1 shl 28)-1);
       end;
      );
      end;
    _reservedOther: NSMutableDictionary;
    _modelObservingTracker: id;
    _expectedObservingInfo: id;
    _singleValueAccessor: id;
    
  public
    procedure objectDidBeginEditing(editor: id); message 'objectDidBeginEditing:';
    procedure objectDidEndEditing(editor: id); message 'objectDidEndEditing:';
    procedure discardEditing; message 'discardEditing';
    function commitEditing: Boolean; message 'commitEditing';
    procedure commitEditingWithDelegate_didCommitSelector_contextInfo(delegate: id; didCommitSelector: SEL; contextInfo: Pointer); message 'commitEditingWithDelegate:didCommitSelector:contextInfo:';
    function isEditing: Boolean; message 'isEditing';

    { Adopted Protocols }
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
  end;

{$endif}
{$endif}