/packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc

https://github.com/slibre/freepascal · Pascal · 54 lines · 11 code · 14 blank · 29 comment · 0 complexity · ba81e172966eb5e13f3bcfece44b01de MD5 · raw file

  1. { Parsed from Foundation.framework NSScriptCoercionHandler.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSSCRIPTCOERCIONHANDLER_PAS_T}
  4. {$define NSSCRIPTCOERCIONHANDLER_PAS_T}
  5. {$endif}
  6. {$endif}
  7. {$ifdef RECORDS}
  8. {$ifndef NSSCRIPTCOERCIONHANDLER_PAS_R}
  9. {$define NSSCRIPTCOERCIONHANDLER_PAS_R}
  10. {$endif}
  11. {$endif}
  12. {$ifdef FUNCTIONS}
  13. {$ifndef NSSCRIPTCOERCIONHANDLER_PAS_F}
  14. {$define NSSCRIPTCOERCIONHANDLER_PAS_F}
  15. {$endif}
  16. {$endif}
  17. {$ifdef EXTERNAL_SYMBOLS}
  18. {$ifndef NSSCRIPTCOERCIONHANDLER_PAS_S}
  19. {$define NSSCRIPTCOERCIONHANDLER_PAS_S}
  20. {$endif}
  21. {$endif}
  22. {$ifdef FORWARD}
  23. NSScriptCoercionHandler = objcclass;
  24. NSScriptCoercionHandlerPointer = ^NSScriptCoercionHandler;
  25. NSScriptCoercionHandlerPtr = NSScriptCoercionHandlerPointer;
  26. {$endif}
  27. {$ifdef CLASSES}
  28. {$ifndef NSSCRIPTCOERCIONHANDLER_PAS_C}
  29. {$define NSSCRIPTCOERCIONHANDLER_PAS_C}
  30. { NSScriptCoercionHandler }
  31. NSScriptCoercionHandler = objcclass external (NSObject)
  32. private
  33. _coercers: id;
  34. public
  35. class function sharedCoercionHandler: NSScriptCoercionHandler; message 'sharedCoercionHandler';
  36. function coerceValue_toClass(value: id; toClass: Pobjc_class): id; message 'coerceValue:toClass:';
  37. procedure registerCoercer_selector_toConvertFromClass_toClass(coercer: id; selector: SEL; fromClass: Pobjc_class; toClass: Pobjc_class); message 'registerCoercer:selector:toConvertFromClass:toClass:';
  38. end;
  39. {$endif}
  40. {$endif}