blob: 2b1754abcdc384742708d54685394a733c2c17fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
{ Parsed from Foundation.framework NSTask.h }
{ Version: 2.1.2 - Wed Dec 8 10:06:43 CET 2010 }
{$ifdef TYPES}
{$ifndef NSTASK_PAS_T}
{$define NSTASK_PAS_T}
{ Constants }
const
NSTaskTerminationReasonExit = 1;
NSTaskTerminationReasonUncaughtSignal = 2;
{ Types }
type
NSTaskTerminationReason = NSInteger;
NSTaskTerminationReasonPtr = ^NSTaskTerminationReason;
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSTASK_PAS_R}
{$define NSTASK_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSTASK_PAS_F}
{$define NSTASK_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTASK_PAS_S}
{$define NSTASK_PAS_S}
{ External string constants }
var
NSTaskDidTerminateNotification: NSString; cvar; external;
{$endif}
{$endif}
{$ifdef FORWARD}
NSTask = objcclass;
NSTaskPointer = ^NSTask;
NSTaskPtr = NSTaskPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSTASK_PAS_C}
{$define NSTASK_PAS_C}
{ NSTask }
NSTask = objcclass(NSObject)
public
class function alloc: NSTask; message 'alloc';
function init: id; message 'init';
procedure setLaunchPath(path: NSString); message 'setLaunchPath:';
procedure setArguments(arguments_: NSArray); message 'setArguments:';
procedure setEnvironment(dict: NSDictionary); message 'setEnvironment:';
procedure setCurrentDirectoryPath(path: NSString); message 'setCurrentDirectoryPath:';
procedure setStandardInput(input: id); message 'setStandardInput:';
procedure setStandardOutput(output: id); message 'setStandardOutput:';
procedure setStandardError(error: id); message 'setStandardError:';
function launchPath: NSString; message 'launchPath';
function arguments: NSArray; message 'arguments';
function environment: NSDictionary; message 'environment';
function currentDirectoryPath: NSString; message 'currentDirectoryPath';
function standardInput: id; message 'standardInput';
function standardOutput: id; message 'standardOutput';
function standardError: id; message 'standardError';
procedure launch; message 'launch';
procedure interrupt; message 'interrupt';
procedure terminate; message 'terminate';
function suspend: Boolean; message 'suspend';
function resume: Boolean; message 'resume';
function processIdentifier: cint; message 'processIdentifier';
function isRunning: Boolean; message 'isRunning';
function terminationStatus: cint; message 'terminationStatus';
function terminationReason: NSTaskTerminationReason; message 'terminationReason';
end; external;
{ NSTaskConveniencesCategory }
NSTaskConveniencesCategory = objccategory(NSTask)
class function launchedTaskWithLaunchPath_arguments(path: NSString; arguments_: NSArray): NSTask; message 'launchedTaskWithLaunchPath:arguments:';
procedure waitUntilExit; message 'waitUntilExit';
end; external;
{$endif}
{$endif}
|