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

{$ifdef TYPES}
{$ifndef NSGARBAGECOLLECTOR_PAS_T}
{$define NSGARBAGECOLLECTOR_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSGARBAGECOLLECTOR_PAS_R}
{$define NSGARBAGECOLLECTOR_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSGARBAGECOLLECTOR_PAS_F}
{$define NSGARBAGECOLLECTOR_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSGARBAGECOLLECTOR_PAS_S}
{$define NSGARBAGECOLLECTOR_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSGarbageCollector = objcclass;
  NSGarbageCollectorPointer = ^NSGarbageCollector;
  NSGarbageCollectorPtr = NSGarbageCollectorPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSGARBAGECOLLECTOR_PAS_C}
{$define NSGARBAGECOLLECTOR_PAS_C}

{ NSGarbageCollector }
  NSGarbageCollector = objcclass external (NSObject)
    
  public
    class function defaultCollector: id; message 'defaultCollector';
    function isCollecting: Boolean; message 'isCollecting'; deprecated 'in Mac OS X 10.6 and later';
    procedure disable; message 'disable';
    procedure enable; message 'enable';
    function isEnabled: Boolean; message 'isEnabled';
    procedure collectIfNeeded; message 'collectIfNeeded';
    procedure collectExhaustively; message 'collectExhaustively';
    procedure disableCollectorForPointer(ptr: Pointer); message 'disableCollectorForPointer:';
    procedure enableCollectorForPointer(ptr: Pointer); message 'enableCollectorForPointer:';
    function zone: NSZonePtr; message 'zone';
  end;

{$endif}
{$endif}