summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSDictionaryController.inc
blob: 9595a65a52d0200823f375c66c039a13508944f6 (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
86
87
88
89
90
91
92
93
94
95
96
{ Parsed from Appkit.framework NSDictionaryController.h }

{$ifdef TYPES}
{$ifndef NSDICTIONARYCONTROLLER_PAS_T}
{$define NSDICTIONARYCONTROLLER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSDICTIONARYCONTROLLER_PAS_R}
{$define NSDICTIONARYCONTROLLER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSDICTIONARYCONTROLLER_PAS_F}
{$define NSDICTIONARYCONTROLLER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSDICTIONARYCONTROLLER_PAS_S}
{$define NSDICTIONARYCONTROLLER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSDictionaryController = objcclass;
  NSDictionaryControllerPointer = ^NSDictionaryController;
  NSDictionaryControllerPtr = NSDictionaryControllerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSDICTIONARYCONTROLLER_PAS_C}
{$define NSDICTIONARYCONTROLLER_PAS_C}

{ NSDictionaryController }
  NSDictionaryController = objcclass external (NSArrayController)
  private
    _reserved5: Pointer;
    _reserved6: Pointer;
    _reserved7: Pointer;
    _contentDictionary: id;
    _initialKey: NSString;
    _initialValue: id;
    _minimumInsertionKeyIndex: NSUInteger;
    _localizedKeyStringsFileName: NSString;
    _localizedKeyForKeyDictionary: NSDictionary;
    _keyForLocalizedKeyDictionary: NSDictionary;
    _includedKeys: NSArray;
    _excludedKeys: NSArray;
    __dictionaryControllerFlags: record
      case byte of
       0: (_anonbitfield_NSDictionaryController0: cuint);
       1: (data: bitpacked record
        _deepCopiesValues: 0..1;
        _suppressBuildingDictionary: 0..1;
        _reservedDictionaryController: 0..((1 shl 30)-1);
       end;
      );
      end;
    
  public
    function newObject: id; message 'newObject';
    procedure setInitialKey(key: NSString); message 'setInitialKey:';
    function initialKey: NSString; message 'initialKey';
    procedure setInitialValue(value: id); message 'setInitialValue:';
    function initialValue: id; message 'initialValue';
    procedure setIncludedKeys(keys: NSArray); message 'setIncludedKeys:';
    function includedKeys: NSArray; message 'includedKeys';
    procedure setExcludedKeys(keys: NSArray); message 'setExcludedKeys:';
    function excludedKeys: NSArray; message 'excludedKeys';
    procedure setLocalizedKeyDictionary(dictionary: NSDictionary); message 'setLocalizedKeyDictionary:';
    function localizedKeyDictionary: NSDictionary; message 'localizedKeyDictionary';
    procedure setLocalizedKeyTable(stringsFileName: NSString); message 'setLocalizedKeyTable:';
    function localizedKeyTable: NSString; message 'localizedKeyTable';
  end;

{ NSDictionaryControllerKeyValuePairCategory }
  NSDictionaryControllerKeyValuePairCategory = objccategory external (NSObject)
    procedure setLocalizedKey(localizedKey: NSString); message 'setLocalizedKey:';
    function localizedKey: NSString; message 'localizedKey';
    procedure setKey(key: NSString); message 'setKey:';
    function key: NSString; message 'key';
    procedure setValue(value: id); message 'setValue:';
    function value: id; message 'value';
    function isExplicitlyIncluded: Boolean; message 'isExplicitlyIncluded';
  end;

{$endif}
{$endif}