NSTask Class
来源:互联网 发布:国外体育直播软件 编辑:程序博客网 时间:2024/04/30 03:39
Using the NSTask
class, your program can run another program as a subprocess and can monitor that program’s execution. An NSTask
object creates a separate executable entity; it differs from NSThread
in that it does not share memory space with the process that creates it.
A task operates within an environment defined by the current values for several items: the current directory, standard input, standard output, standard error, and the values of any environment variables. By default, anNSTask
object inherits its environment from the process that launches it. If there are any values that should be different for the task, for example, if the current directory should change, you must change the value before you launch the task. A task’s environment cannot be changed while it is running.
An NSTask
object can only be run once. Subsequent attempts to run the task raise an error.
Important: In a sandboxed application, child processes created with the NSTask
class inherit the sandbox of the parent app. You should generally write helper applications as XPC Services instead, because XPC Services allows you to specify different sandbox entitlements for helper apps. See Daemons and Services Programming Guide and XPC Services API Reference for more information.
- NSTask Class
- NSTask
- nstimer,nsrunloop,nsthread,nstask
- 使用NSTask 挂载dmg 文件
- 通过NSTask用Cocoa执行perl脚本
- 通过NSTask用Cocoa执行perl脚本
- Launching executable with NSTask - Sandboxing problems?
- 通过NSTask用Cocoa执行perl脚本
- 关于NSTask使用的一些心得体会
- NSTask Tutorial for Mac OS X
- NSTask 在实际工程中的使用
- NSTimer、 NSTask、 NSThread 和 NSRunloop 之间的区别:
- NSTAsk的用法:Cocoa 调用外部可执行程序。
- 教程:通过NSTask用Cocoa执行perl脚本
- NSTimer、 NSTask、 NSThread 和 NSRunloop 之间的区别
- NSTimer、 NSTask、 NSThread 和 NSRunloop 之间的区别
- NSTimer、 NSTask、 NSThread 和 NSRunloop 之间的区别:
- Launch an NSTask and bring it to front
- torque-roll-userguide
- Magento小知识
- java Socket 文件传输
- Magento 提速的优化方法1
- android json解析及简单例子 (转载)
- NSTask Class
- android异常-java.lang.VerifyError
- oracle 如何实现上一条、下一条、查找不连续的值(转)
- TCP/IP协议学习
- 程序执行效率分析
- Keil总是出现“File has been changed outside the editor, reload?”提示
- js技巧
- MyEclipse中的工程发布到Tomcat
- MB525 系统软件说明