NSTreeController.inc 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. { Parsed from AppKit.framework NSTreeController.h }
  2. {$ifdef TYPES}
  3. type
  4. NSTreeControllerPtr = ^NSTreeController;
  5. {$endif}
  6. {$ifdef CLASSES}
  7. type
  8. NSTreeController = objcclass external (NSObjectController)
  9. private
  10. _treeControllerReserved1: id;
  11. _modelObservingKeyPaths: NSArray;
  12. _treeStructureObservers: id;
  13. _arrangedObjects: id;
  14. _rootNode: id;
  15. _selectionIndexPaths: id;
  16. _treeControllerFlags: bitpacked record
  17. case byte of
  18. 0: (_anonBitField__treeControllerFlags0: cuint);
  19. 1: (
  20. _avoidsEmptySelection: 0..1;
  21. _preservesSelection: 0..1;
  22. _selectsInsertedObjects: 0..1;
  23. _explicitlyCannotInsert: 0..1;
  24. _explicitlyCannotInsertChild: 0..1;
  25. _explicitlyCannotAddChild: 0..1;
  26. _alwaysUsesMultipleValuesMarker: 0..1;
  27. _observingThroughArrangedObjects: 0..1;
  28. _mutatingNodes: 0..1;
  29. _performingFetch: 0..1;
  30. _skipSortingAfterFetch: 0..1;
  31. _usesIdenticalComparisonOfModelObjects: 0..1;
  32. _reservedTreeController: 0..((1 shl 20)-1);
  33. );
  34. end;
  35. _selectedObjects: NSArray;
  36. _childrenKeyPath: NSString;
  37. _countKeyPath: NSString;
  38. _leafKeyPath: NSString;
  39. _sortDescriptors: NSArray;
  40. public
  41. procedure rearrangeObjects; message 'rearrangeObjects';
  42. function arrangedObjects: id; message 'arrangedObjects';
  43. procedure setChildrenKeyPath(newValue: NSString); message 'setChildrenKeyPath:';
  44. function childrenKeyPath: NSString; message 'childrenKeyPath';
  45. procedure setCountKeyPath(newValue: NSString); message 'setCountKeyPath:';
  46. function countKeyPath: NSString; message 'countKeyPath';
  47. procedure setLeafKeyPath(newValue: NSString); message 'setLeafKeyPath:';
  48. function leafKeyPath: NSString; message 'leafKeyPath';
  49. procedure setSortDescriptors(newValue: NSArray); message 'setSortDescriptors:';
  50. function sortDescriptors: NSArray; message 'sortDescriptors';
  51. procedure setContent(newValue: id); message 'setContent:';
  52. function content: id; message 'content';
  53. procedure add (sender: id); message 'add:';
  54. procedure remove (sender: id); message 'remove:';
  55. procedure addChild (sender: id); message 'addChild:';
  56. procedure insert (sender: id); message 'insert:';
  57. procedure insertChild (sender: id); message 'insertChild:';
  58. function canInsert: ObjCBOOL; message 'canInsert';
  59. function canInsertChild: ObjCBOOL; message 'canInsertChild';
  60. function canAddChild: ObjCBOOL; message 'canAddChild';
  61. procedure insertObject_atArrangedObjectIndexPath (object_: id; indexPath: NSIndexPath); message 'insertObject:atArrangedObjectIndexPath:';
  62. procedure insertObjects_atArrangedObjectIndexPaths (objects: NSArray; indexPaths: NSArray); message 'insertObjects:atArrangedObjectIndexPaths:';
  63. procedure removeObjectAtArrangedObjectIndexPath (indexPath: NSIndexPath); message 'removeObjectAtArrangedObjectIndexPath:';
  64. procedure removeObjectsAtArrangedObjectIndexPaths (indexPaths: NSArray); message 'removeObjectsAtArrangedObjectIndexPaths:';
  65. procedure setAvoidsEmptySelection(newValue: ObjCBOOL); message 'setAvoidsEmptySelection:';
  66. function avoidsEmptySelection: ObjCBOOL; message 'avoidsEmptySelection';
  67. procedure setPreservesSelection(newValue: ObjCBOOL); message 'setPreservesSelection:';
  68. function preservesSelection: ObjCBOOL; message 'preservesSelection';
  69. procedure setSelectsInsertedObjects(newValue: ObjCBOOL); message 'setSelectsInsertedObjects:';
  70. function selectsInsertedObjects: ObjCBOOL; message 'selectsInsertedObjects';
  71. procedure setAlwaysUsesMultipleValuesMarker(newValue: ObjCBOOL); message 'setAlwaysUsesMultipleValuesMarker:';
  72. function alwaysUsesMultipleValuesMarker: ObjCBOOL; message 'alwaysUsesMultipleValuesMarker';
  73. function selectedObjects: NSArray; message 'selectedObjects';
  74. function setSelectionIndexPaths (indexPaths: NSArray): ObjCBOOL; message 'setSelectionIndexPaths:';
  75. function selectionIndexPaths: NSArray; message 'selectionIndexPaths';
  76. function setSelectionIndexPath (indexPath: NSIndexPath): ObjCBOOL; message 'setSelectionIndexPath:';
  77. function selectionIndexPath: NSIndexPath; message 'selectionIndexPath';
  78. function addSelectionIndexPaths (indexPaths: NSArray): ObjCBOOL; message 'addSelectionIndexPaths:';
  79. function removeSelectionIndexPaths (indexPaths: NSArray): ObjCBOOL; message 'removeSelectionIndexPaths:';
  80. function selectedNodes: NSArray; message 'selectedNodes';
  81. procedure moveNode_toIndexPath (node: NSTreeNode; indexPath: NSIndexPath); message 'moveNode:toIndexPath:'; { available in 10_5 }
  82. procedure moveNodes_toIndexPath (nodes: NSArray; startingIndexPath: NSIndexPath); message 'moveNodes:toIndexPath:'; { available in 10_5 }
  83. function childrenKeyPathForNode (node: NSTreeNode): NSString; message 'childrenKeyPathForNode:'; { available in 10_5 }
  84. function countKeyPathForNode (node: NSTreeNode): NSString; message 'countKeyPathForNode:'; { available in 10_5 }
  85. function leafKeyPathForNode (node: NSTreeNode): NSString; message 'leafKeyPathForNode:'; { available in 10_5 }
  86. end;
  87. {$endif}