NSArrayController.inc 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. { Parsed from Appkit.framework NSArrayController.h }
  2. { Version: 2.1.2 - Wed Dec 8 10:06:06 CET 2010 }
  3. {$ifdef TYPES}
  4. {$ifndef NSARRAYCONTROLLER_PAS_T}
  5. {$define NSARRAYCONTROLLER_PAS_T}
  6. {$endif}
  7. {$endif}
  8. {$ifdef RECORDS}
  9. {$ifndef NSARRAYCONTROLLER_PAS_R}
  10. {$define NSARRAYCONTROLLER_PAS_R}
  11. {$endif}
  12. {$endif}
  13. {$ifdef FUNCTIONS}
  14. {$ifndef NSARRAYCONTROLLER_PAS_F}
  15. {$define NSARRAYCONTROLLER_PAS_F}
  16. {$endif}
  17. {$endif}
  18. {$ifdef EXTERNAL_SYMBOLS}
  19. {$ifndef NSARRAYCONTROLLER_PAS_S}
  20. {$define NSARRAYCONTROLLER_PAS_S}
  21. {$endif}
  22. {$endif}
  23. {$ifdef FORWARD}
  24. NSArrayController = objcclass;
  25. NSArrayControllerPointer = ^NSArrayController;
  26. NSArrayControllerPtr = NSArrayControllerPointer;
  27. {$endif}
  28. {$ifdef CLASSES}
  29. {$ifndef NSARRAYCONTROLLER_PAS_C}
  30. {$define NSARRAYCONTROLLER_PAS_C}
  31. { NSArrayController }
  32. NSArrayController = objcclass(NSObjectController)
  33. private
  34. _reserved4: Pointer;
  35. _rearrangementExtensions: id;
  36. _temporaryWorkObjects: NSMutableArray;
  37. __arrayControllerFlags: bitpacked record
  38. case byte of
  39. 0: (_anonbitfield_NSArrayController0: cuint);
  40. 1: (
  41. _avoidsEmptySelection: 0..1;
  42. _preservesSelection: 0..1;
  43. _selectsInsertedObjects: 0..1;
  44. _alwaysUsesMultipleValuesMarker: 0..1;
  45. _refreshesAllModelObjects: 0..1;
  46. _filterRestrictsInsertion: 0..1;
  47. _overridesArrangeObjects: 0..1;
  48. _overridesDidChangeArrangementCriteria: 0..1;
  49. _explicitlyCannotInsert: 0..1;
  50. _generatedEmptyArray: 0..1;
  51. _isObservingKeyPathsThroughArrangedObjects: 0..1;
  52. _arrangedObjectsIsMutable: 0..1;
  53. _clearsFilterPredicateOnInsertion: 0..1;
  54. _skipSortingAfterFetch: 0..1;
  55. _automaticallyRearrangesObjects: 0..1;
  56. _reservedArrayController: 0..((1 shl 17)-1);
  57. );
  58. end;
  59. _observedIndexHint: NSUInteger;
  60. _selectionIndexes: NSMutableIndexSet;
  61. _objects: NSMutableArray;
  62. _cachedSelectedIndexes: NSIndexSet;
  63. _cachedSelectedObjects: NSArray;
  64. _arrangedObjects: NSArray;
  65. public
  66. class function alloc: NSArrayController; message 'alloc';
  67. procedure rearrangeObjects; message 'rearrangeObjects';
  68. procedure setAutomaticallyRearrangesObjects(flag: Boolean); message 'setAutomaticallyRearrangesObjects:';
  69. function automaticallyRearrangesObjects: Boolean; message 'automaticallyRearrangesObjects';
  70. function automaticRearrangementKeyPaths: NSArray; message 'automaticRearrangementKeyPaths';
  71. procedure didChangeArrangementCriteria; message 'didChangeArrangementCriteria';
  72. procedure setSortDescriptors(sortDescriptors_: NSArray); message 'setSortDescriptors:';
  73. function sortDescriptors: NSArray; message 'sortDescriptors';
  74. procedure setFilterPredicate(filterPredicate_: NSPredicate); message 'setFilterPredicate:';
  75. function filterPredicate: NSPredicate; message 'filterPredicate';
  76. procedure setClearsFilterPredicateOnInsertion(flag: Boolean); message 'setClearsFilterPredicateOnInsertion:';
  77. function clearsFilterPredicateOnInsertion: Boolean; message 'clearsFilterPredicateOnInsertion';
  78. function arrangeObjects(objects: NSArray): NSArray; message 'arrangeObjects:';
  79. function arrangedObjects: id; message 'arrangedObjects';
  80. procedure setAvoidsEmptySelection(flag: Boolean); message 'setAvoidsEmptySelection:';
  81. function avoidsEmptySelection: Boolean; message 'avoidsEmptySelection';
  82. procedure setPreservesSelection(flag: Boolean); message 'setPreservesSelection:';
  83. function preservesSelection: Boolean; message 'preservesSelection';
  84. procedure setSelectsInsertedObjects(flag: Boolean); message 'setSelectsInsertedObjects:';
  85. function selectsInsertedObjects: Boolean; message 'selectsInsertedObjects';
  86. procedure setAlwaysUsesMultipleValuesMarker(flag: Boolean); message 'setAlwaysUsesMultipleValuesMarker:';
  87. function alwaysUsesMultipleValuesMarker: Boolean; message 'alwaysUsesMultipleValuesMarker';
  88. function setSelectionIndexes(indexes: NSIndexSet): Boolean; message 'setSelectionIndexes:';
  89. function selectionIndexes: NSIndexSet; message 'selectionIndexes';
  90. function setSelectionIndex(index: NSUInteger): Boolean; message 'setSelectionIndex:';
  91. function selectionIndex: NSUInteger; message 'selectionIndex';
  92. function addSelectionIndexes(indexes: NSIndexSet): Boolean; message 'addSelectionIndexes:';
  93. function removeSelectionIndexes(indexes: NSIndexSet): Boolean; message 'removeSelectionIndexes:';
  94. function setSelectedObjects(objects: NSArray): Boolean; message 'setSelectedObjects:';
  95. function selectedObjects: NSArray; message 'selectedObjects';
  96. function addSelectedObjects(objects: NSArray): Boolean; message 'addSelectedObjects:';
  97. function removeSelectedObjects(objects: NSArray): Boolean; message 'removeSelectedObjects:';
  98. procedure add(sender: id); message 'add:';
  99. procedure remove(sender: id); message 'remove:';
  100. procedure insert(sender: id); message 'insert:';
  101. function canInsert: Boolean; message 'canInsert';
  102. procedure selectNext(sender: id); message 'selectNext:';
  103. procedure selectPrevious(sender: id); message 'selectPrevious:';
  104. function canSelectNext: Boolean; message 'canSelectNext';
  105. function canSelectPrevious: Boolean; message 'canSelectPrevious';
  106. procedure addObject(object_: id); message 'addObject:';
  107. procedure addObjects(objects: NSArray); message 'addObjects:';
  108. procedure insertObject_atArrangedObjectIndex(object_: id; index: NSUInteger); message 'insertObject:atArrangedObjectIndex:';
  109. procedure insertObjects_atArrangedObjectIndexes(objects: NSArray; indexes: NSIndexSet); message 'insertObjects:atArrangedObjectIndexes:';
  110. procedure removeObjectAtArrangedObjectIndex(index: NSUInteger); message 'removeObjectAtArrangedObjectIndex:';
  111. procedure removeObjectsAtArrangedObjectIndexes(indexes: NSIndexSet); message 'removeObjectsAtArrangedObjectIndexes:';
  112. procedure removeObject(object_: id); message 'removeObject:';
  113. procedure removeObjects(objects: NSArray); message 'removeObjects:';
  114. end; external;
  115. {$endif}
  116. {$endif}