summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/foundation/NSScriptKeyValueCoding.inc
blob: f4efc5d15d4de45fdebcf4570df71c9c7d45291b (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
{ Parsed from Foundation.framework NSScriptKeyValueCoding.h }

{$ifdef TYPES}
{$ifndef NSSCRIPTKEYVALUECODING_PAS_T}
{$define NSSCRIPTKEYVALUECODING_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSSCRIPTKEYVALUECODING_PAS_R}
{$define NSSCRIPTKEYVALUECODING_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSSCRIPTKEYVALUECODING_PAS_F}
{$define NSSCRIPTKEYVALUECODING_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSSCRIPTKEYVALUECODING_PAS_S}
{$define NSSCRIPTKEYVALUECODING_PAS_S}

{ External string constants }
var
  NSOperationNotSupportedForKeyException: NSString; cvar; external;

{$endif}
{$endif}

{$ifdef FORWARD}

{$endif}

{$ifdef CLASSES}
{$ifndef NSSCRIPTKEYVALUECODING_PAS_C}
{$define NSSCRIPTKEYVALUECODING_PAS_C}

{ NSScriptKeyValueCodingCategory }
  NSScriptKeyValueCodingCategory = objccategory external (NSObject)
    function valueAtIndex_inPropertyWithKey(index: NSUInteger; key: NSString): id; message 'valueAtIndex:inPropertyWithKey:';
    function valueWithName_inPropertyWithKey(name: NSString; key: NSString): id; message 'valueWithName:inPropertyWithKey:';
    function valueWithUniqueID_inPropertyWithKey(uniqueID: id; key: NSString): id; message 'valueWithUniqueID:inPropertyWithKey:';
    procedure insertValue_atIndex_inPropertyWithKey(value: id; index: NSUInteger; key: NSString); message 'insertValue:atIndex:inPropertyWithKey:';
    procedure removeValueAtIndex_fromPropertyWithKey(index: NSUInteger; key: NSString); message 'removeValueAtIndex:fromPropertyWithKey:';
    procedure replaceValueAtIndex_inPropertyWithKey_withValue(index: NSUInteger; key: NSString; value: id); message 'replaceValueAtIndex:inPropertyWithKey:withValue:';
    procedure insertValue_inPropertyWithKey(value: id; key: NSString); message 'insertValue:inPropertyWithKey:';
    function coerceValue_forKey(value: id; key: NSString): id; message 'coerceValue:forKey:';
  end;

{$endif}
{$endif}