Re: Releasing an NSTask
Re: Releasing an NSTask
- Subject: Re: Releasing an NSTask
- From: Shawn Erickson <email@hidden>
- Date: Thu, 15 Jan 2004 17:56:19 -0800
On Jan 15, 2004, at 5:19 PM, Chad Armstrong wrote:
When is an appropriate time to release an NSTask? When my program is
shutting down, it will dealloc the task ([myTask dealloc]), but when
should [myTask release] be called? Should it be called each time the
task has completed running? If so, will this effect any further runs
of the task?
You should never [need to] send dealloc yourself to any object and you
should release/autorelease an object when you no longer needed it but
only if you created it.
I suggest you review the following...
<
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
index.html>
and
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaObjects/index.html>
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.