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

{$ifdef TYPES}
{$ifndef NSPOINTERARRAY_PAS_T}
{$define NSPOINTERARRAY_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPOINTERARRAY_PAS_R}
{$define NSPOINTERARRAY_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPOINTERARRAY_PAS_F}
{$define NSPOINTERARRAY_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPOINTERARRAY_PAS_S}
{$define NSPOINTERARRAY_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPointerArray = objcclass;
  NSPointerArrayPointer = ^NSPointerArray;
  NSPointerArrayPtr = NSPointerArrayPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPOINTERARRAY_PAS_C}
{$define NSPOINTERARRAY_PAS_C}

{ NSPointerArray }
  NSPointerArray = objcclass external (NSObject, NSFastEnumerationProtocol, NSCopyingProtocol, NSCodingProtocol)
    
  public
    function pointerFunctions: NSPointerFunctions; message 'pointerFunctions';
    function pointerAtIndex(index: NSUInteger): Pointer; message 'pointerAtIndex:';
    procedure addPointer(pointer_: Pointer); message 'addPointer:';
    procedure removePointerAtIndex(index: NSUInteger); message 'removePointerAtIndex:';
    procedure insertPointer_atIndex(item: Pointer; index: NSUInteger); message 'insertPointer:atIndex:';
    procedure replacePointerAtIndex_withPointer(index: NSUInteger; item: Pointer); message 'replacePointerAtIndex:withPointer:';
    procedure compact; message 'compact';
    function count: NSUInteger; message 'count';
    procedure setCount(count_: NSUInteger); message 'setCount:';

    { Adopted Protocols }
    function countByEnumeratingWithState_objects_count(state: NSFastEnumerationStatePtr; stackbuf: idPtr; len: NSUInteger): NSUInteger;
    function copyWithZone(zone_: NSZonePtr): id;
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
  end;

{ NSArrayConveniencesCategory }
  NSArrayConveniencesCategory = objccategory external (NSPointerArray)
    function allObjects: NSArray; message 'allObjects';
  end;

{$endif}
{$endif}