• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Releasing an NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Releasing an NSTask (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: NSTextView data binding delay
  • Next by Date: Re: Releasing an NSTask
  • Previous by thread: Releasing an NSTask
  • Next by thread: Re: Releasing an NSTask
  • Index(es):
    • Date
    • Thread