想知道如何启动命令,例如:
while :; do ./myCommand; done;
Run Code Online (Sandbox Code Playgroud)
但不是做平时
screen -S nameOfMyScreen
Run Code Online (Sandbox Code Playgroud)
然后命令
while :; do ./myCommand; done;
Run Code Online (Sandbox Code Playgroud)
然后拆下屏幕
^a ^d (Control "a" the control "d"
Run Code Online (Sandbox Code Playgroud)
我希望它能够开始和分离.谢谢!
只看我会用什么只允许选择特定的文件(目前的图像)
setFileTypesArray 回报
NSOpenPanel可能不响应-setFileTypesArray:
然后面板根本没有打开.继承我的代码:
NSArray * fileTypes = [NSArray arrayWithObjects:@"png",@"tiff",@"baz",nil];
NSLog(@"Button Pressed");
[textField setStringValue:@"Test"];
int i; // Loop counter.
NSOpenPanel* openDlg = [NSOpenPanel openPanel];
[openDlg setCanChooseFiles:YES];
[openDlg setFileTypesArray:fileTypes];
Run Code Online (Sandbox Code Playgroud)
谢谢.