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

{$ifdef TYPES}
{$ifndef NSPORTCODER_PAS_T}
{$define NSPORTCODER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPORTCODER_PAS_R}
{$define NSPORTCODER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPORTCODER_PAS_F}
{$define NSPORTCODER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPORTCODER_PAS_S}
{$define NSPORTCODER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPortCoder = objcclass;
  NSPortCoderPointer = ^NSPortCoder;
  NSPortCoderPtr = NSPortCoderPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPORTCODER_PAS_C}
{$define NSPORTCODER_PAS_C}

{ NSPortCoder }
  NSPortCoder = objcclass external (NSCoder)
    
  public
    function isBycopy: Boolean; message 'isBycopy';
    function isByref: Boolean; message 'isByref';
    function connection: NSConnection; message 'connection';
    procedure encodePortObject(aport: NSPort); message 'encodePortObject:';
    function decodePortObject: NSPort; message 'decodePortObject';
    function initWithReceivePort_sendPort_components(rcvPort: NSPort; sndPort: NSPort; comps: NSArray): id; message 'initWithReceivePort:sendPort:components:';
    procedure dispatch; message 'dispatch';
  end;

{ NSDistributedObjectsCategory }
  NSDistributedObjectsCategory = objccategory external (NSObject)
    function classForPortCoder: Pobjc_class; message 'classForPortCoder';
    function replacementObjectForPortCoder(coder: NSPortCoder): id; message 'replacementObjectForPortCoder:';
  end;

{$endif}
{$endif}