• 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: NSTask and NSPipe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and NSPipe


  • Subject: Re: NSTask and NSPipe
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 27 Jun 2001 04:02:44 -0500

Oops...

One more trick:

(5) See the documentation for -[NSNotificationCenter addObserver:selector:name:object:] :

"The notification center does not retain anObserver or anObject. Therefore, you should always send -removeObserver: or removeObserver:name:object: to the notification center before releasing these objects."

So stop observation of NSTaskDidTerminateNotification in endMyTask:, and of NSFileHandleReadCompletionNotification when dataAvailable: is exhausted.

-- F


  • Prev by Date: Strange problem with lots of NSGregorianDates
  • Next by Date: Typeing
  • Previous by thread: Re: NSTask and NSPipe
  • Next by thread: Re: NSTask and NSPipe
  • Index(es):
    • Date
    • Thread