FROM : Hamish Allan
DATE : Mon Jun 16 21:52:51 2008
On Mon, Jun 16, 2008 at 1:39 AM, James W. Walker <<email_removed>> wrote:
> No, the controller does not keep a reference to the task. Why would it need
> to do that in order to "keep it alive"?
Because that's how memory management works. *Something* needs to keep
a reference to your NSTask, otherwise your program is leaking memory
(unless you're using garbage collection, in which case your task will
simply disappear at some indeterminate point).
Hamish
DATE : Mon Jun 16 21:52:51 2008
On Mon, Jun 16, 2008 at 1:39 AM, James W. Walker <<email_removed>> wrote:
> No, the controller does not keep a reference to the task. Why would it need
> to do that in order to "keep it alive"?
Because that's how memory management works. *Something* needs to keep
a reference to your NSTask, otherwise your program is leaking memory
(unless you're using garbage collection, in which case your task will
simply disappear at some indeterminate point).
Hamish
| Related mails | Author | Date |
|---|---|---|
| James W. Walker | Jun 16, 00:20 | |
| Andreas Monitzer | Jun 16, 00:25 | |
| James W. Walker | Jun 16, 00:53 | |
| Hamish Allan | Jun 16, 01:04 | |
| James W. Walker | Jun 16, 02:39 | |
| Jens Alfke | Jun 16, 20:23 | |
| Hamish Allan | Jun 16, 21:52 | |
| Christopher Nebel | Jun 16, 23:14 | |
| James Walker | Jun 16, 23:17 |






Cocoa mail archive

