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

{$ifdef TYPES}
{$ifndef NSDISTANTOBJECT_PAS_T}
{$define NSDISTANTOBJECT_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSDISTANTOBJECT_PAS_R}
{$define NSDISTANTOBJECT_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSDISTANTOBJECT_PAS_F}
{$define NSDISTANTOBJECT_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSDISTANTOBJECT_PAS_S}
{$define NSDISTANTOBJECT_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSDistantObject = objcclass;
  NSDistantObjectPointer = ^NSDistantObject;
  NSDistantObjectPtr = NSDistantObjectPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSDISTANTOBJECT_PAS_C}
{$define NSDISTANTOBJECT_PAS_C}

{ NSDistantObject }
  NSDistantObject = objcclass external (NSProxy, NSCodingProtocol)
  private
    _knownSelectors: id;
    _wireCount: NSUInteger;
    _refCount: NSUInteger;
    _proto: id;
    ___2: cuint16;
    ___1: cuint8;
    _wireType: cuint8;
    _remoteClass: id;
    
  public
    class function proxyWithTarget_connection(target: id; connection: NSConnection): NSDistantObject; message 'proxyWithTarget:connection:';
    function initWithTarget_connection(target: id; connection: NSConnection): id; message 'initWithTarget:connection:';
    class function proxyWithLocal_connection(target: id; connection: NSConnection): NSDistantObject; message 'proxyWithLocal:connection:';
    function initWithLocal_connection(target: id; connection: NSConnection): id; message 'initWithLocal:connection:';
    procedure setProtocolForProxy(proto: objc_protocol); message 'setProtocolForProxy:';
    function connectionForProxy: NSConnection; message 'connectionForProxy';

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

{$endif}
{$endif}