NSScriptCommand.inc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. { Parsed from Foundation.framework NSScriptCommand.h }
  2. {$ifdef TYPES}
  3. type
  4. NSScriptCommandPtr = ^NSScriptCommand;
  5. {$endif}
  6. {$ifdef TYPES}
  7. const
  8. NSNoScriptError = 0;
  9. NSReceiverEvaluationScriptError = 1;
  10. NSKeySpecifierEvaluationScriptError = 2;
  11. NSArgumentEvaluationScriptError = 3;
  12. NSReceiversCantHandleCommandScriptError = 4;
  13. NSRequiredArgumentsMissingScriptError = 5;
  14. NSArgumentsWrongScriptError = 6;
  15. NSUnknownKeyScriptError = 7;
  16. NSInternalScriptError = 8;
  17. NSOperationNotSupportedForKeyScriptError = 9;
  18. NSCannotCreateScriptCommandError = 10;
  19. {$endif}
  20. {$ifdef CLASSES}
  21. type
  22. NSScriptCommand = objcclass external (NSObject, NSCodingProtocol)
  23. private
  24. _commandDescription: NSScriptCommandDescription;
  25. _directParameter: id;
  26. _receiversSpecifier: NSScriptObjectSpecifier;
  27. _evaluatedReceivers: id;
  28. _arguments: NSDictionary;
  29. _evaluatedArguments: NSMutableDictionary;
  30. _flags: bitpacked record
  31. case byte of
  32. 0: (_anonBitField__flags0: cuint);
  33. 1: (
  34. hasEvaluatedReceivers: 0..1;
  35. hasEvaluatedArguments: 0..1;
  36. RESERVED: 0..((1 shl 30)-1);
  37. );
  38. end;
  39. _moreVars: id;
  40. _reserved: pointer;
  41. public
  42. function initWithCommandDescription (commandDef: NSScriptCommandDescription): instancetype; message 'initWithCommandDescription:'; { NS_DESIGNATED_INITIALIZER }
  43. function initWithCoder (inCoder: NSCoder): instancetype; message 'initWithCoder:';
  44. function commandDescription: NSScriptCommandDescription; message 'commandDescription';
  45. procedure setDirectParameter(newValue: id); message 'setDirectParameter:';
  46. function directParameter: id; message 'directParameter';
  47. procedure setReceiversSpecifier(newValue: NSScriptObjectSpecifier); message 'setReceiversSpecifier:';
  48. function receiversSpecifier: NSScriptObjectSpecifier; message 'receiversSpecifier';
  49. function evaluatedReceivers: id; message 'evaluatedReceivers';
  50. procedure setArguments(newValue: NSDictionary); message 'setArguments:';
  51. function arguments: NSDictionary; message 'arguments';
  52. function evaluatedArguments: NSDictionary; message 'evaluatedArguments';
  53. function isWellFormed: ObjCBOOL; message 'isWellFormed';
  54. function performDefaultImplementation: id; message 'performDefaultImplementation';
  55. function executeCommand: id; message 'executeCommand';
  56. procedure setScriptErrorNumber(newValue: cint); message 'setScriptErrorNumber:';
  57. function scriptErrorNumber: cint; message 'scriptErrorNumber';
  58. procedure setScriptErrorOffendingObjectDescriptor(newValue: NSAppleEventDescriptor); message 'setScriptErrorOffendingObjectDescriptor:';
  59. function scriptErrorOffendingObjectDescriptor: NSAppleEventDescriptor; message 'scriptErrorOffendingObjectDescriptor';
  60. procedure setScriptErrorExpectedTypeDescriptor(newValue: NSAppleEventDescriptor); message 'setScriptErrorExpectedTypeDescriptor:';
  61. function scriptErrorExpectedTypeDescriptor: NSAppleEventDescriptor; message 'scriptErrorExpectedTypeDescriptor';
  62. procedure setScriptErrorString(newValue: NSString); message 'setScriptErrorString:';
  63. function scriptErrorString: NSString; message 'scriptErrorString';
  64. class function currentCommand: NSScriptCommand; message 'currentCommand';
  65. function appleEvent: NSAppleEventDescriptor; message 'appleEvent';
  66. procedure suspendExecution; message 'suspendExecution';
  67. procedure resumeExecutionWithResult (result_: id); message 'resumeExecutionWithResult:';
  68. { Adopted protocols }
  69. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  70. end;
  71. {$endif}