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

{$ifdef TYPES}
{$ifndef NSPROTOCOLCHECKER_PAS_T}
{$define NSPROTOCOLCHECKER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPROTOCOLCHECKER_PAS_R}
{$define NSPROTOCOLCHECKER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPROTOCOLCHECKER_PAS_F}
{$define NSPROTOCOLCHECKER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPROTOCOLCHECKER_PAS_S}
{$define NSPROTOCOLCHECKER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSProtocolChecker = objcclass;
  NSProtocolCheckerPointer = ^NSProtocolChecker;
  NSProtocolCheckerPtr = NSProtocolCheckerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPROTOCOLCHECKER_PAS_C}
{$define NSPROTOCOLCHECKER_PAS_C}

{ NSProtocolChecker }
  NSProtocolChecker = objcclass external (NSProxy)
    
  public
    function protocol: Protocol; message 'protocol';
    function target: NSObject; message 'target';
  end;

{ NSProtocolCheckerCreationCategory }
  NSProtocolCheckerCreationCategory = objccategory external (NSProtocolChecker)
    class function protocolCheckerWithTarget_protocol(anObject: NSObject; aProtocol: objc_protocol): id; message 'protocolCheckerWithTarget:protocol:';
    function initWithTarget_protocol(anObject: NSObject; aProtocol: objc_protocol): id; message 'initWithTarget:protocol:';
  end;

{$endif}
{$endif}