NSController.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. { Parsed from Appkit.framework NSController.h }
  2. { Version: 2.1.5 - Fri Feb 11 21:45:56 CET 2011 }
  3. {$ifdef TYPES}
  4. {$ifndef NSCONTROLLER_PAS_T}
  5. {$define NSCONTROLLER_PAS_T}
  6. {$endif}
  7. {$endif}
  8. {$ifdef RECORDS}
  9. {$ifndef NSCONTROLLER_PAS_R}
  10. {$define NSCONTROLLER_PAS_R}
  11. {$endif}
  12. {$endif}
  13. {$ifdef FUNCTIONS}
  14. {$ifndef NSCONTROLLER_PAS_F}
  15. {$define NSCONTROLLER_PAS_F}
  16. {$endif}
  17. {$endif}
  18. {$ifdef EXTERNAL_SYMBOLS}
  19. {$ifndef NSCONTROLLER_PAS_S}
  20. {$define NSCONTROLLER_PAS_S}
  21. {$endif}
  22. {$endif}
  23. {$ifdef FORWARD}
  24. NSController = objcclass;
  25. NSControllerPointer = ^NSController;
  26. NSControllerPtr = NSControllerPointer;
  27. {$endif}
  28. {$ifdef CLASSES}
  29. {$ifndef NSCONTROLLER_PAS_C}
  30. {$define NSCONTROLLER_PAS_C}
  31. { NSController }
  32. NSController = objcclass external (NSObject, NSCodingProtocol)
  33. private
  34. _reserved: Pointer;
  35. _reserved2: Pointer;
  36. _specialPurposeType: cint;
  37. _bindingAdaptor: id;
  38. _editors: NSMutableArray;
  39. _declaredKeys: NSMutableArray;
  40. _dependentKeyToModelKeyTable: NSMutableDictionary;
  41. _modelKeyToDependentKeyTable: NSMutableDictionary;
  42. _modelKeysToRefreshEachTime: NSMutableArray;
  43. __bindingsControllerFlags: bitpacked record
  44. case byte of
  45. 0: (_anonbitfield_NSController0: cuint);
  46. 1: (
  47. _alwaysPresentsApplicationModalAlerts: 0..1;
  48. _refreshesAllModelKeys: 0..1;
  49. _multipleObservedModelObjects: 0..1;
  50. _isEditing: 0..1;
  51. _reservedController: 0..((1 shl 28)-1);
  52. );
  53. end;
  54. _reservedOther: NSMutableDictionary;
  55. _modelObservingTracker: id;
  56. _expectedObservingInfo: id;
  57. _singleValueAccessor: id;
  58. public
  59. procedure objectDidBeginEditing(editor: id); message 'objectDidBeginEditing:';
  60. procedure objectDidEndEditing(editor: id); message 'objectDidEndEditing:';
  61. procedure discardEditing; message 'discardEditing';
  62. function commitEditing: Boolean; message 'commitEditing';
  63. procedure commitEditingWithDelegate_didCommitSelector_contextInfo(delegate: id; didCommitSelector: SEL; contextInfo: Pointer); message 'commitEditingWithDelegate:didCommitSelector:contextInfo:';
  64. function isEditing: Boolean; message 'isEditing';
  65. { Adopted Protocols }
  66. procedure encodeWithCoder(aCoder: NSCoder);
  67. function initWithCoder(aDecoder: NSCoder): id;
  68. end;
  69. {$endif}
  70. {$endif}