• 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
[SOLVED] Re: waitForDataInBackgroundAndNotify blocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: waitForDataInBackgroundAndNotify blocking


  • Subject: [SOLVED] Re: waitForDataInBackgroundAndNotify blocking
  • From: Yann Bizeul <email@hidden>
  • Date: Thu, 13 Jan 2005 16:25:40 +0100

Clues :
Can this be related to thread safety of NSFileHandle ? I don't know if there is some points to take care when using them in threads.
Can this be related to the fact I keep open a NSFileHandle to read the output, but using a new one to write on it each time ?
Do I need to do something special on the NSFileHandle at the end of the first try ? I just un-register for the notification (since there will be no longer an object to receive them)
I was right about the first idea. Not that NSFilehandle is not thread safe, but the communication was broken because the thread opening my NSFileHandle did end after execution, which is normal, but I could not keep my modem open this way.
What I did is just call a method in the main thread before spawning the job thread. In the main thread, I just open a NSFileHandle if it does not exist.


Thanks for your non-Help :-)
--
Yann Bizeul - yann at tynsoe.org
Please use this e-mail when writing to me.

You can visit my projects at this address :
http://projects.tynsoe.org/
(BuddyPop - GeekTool - SSH Tunnel Manager...)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >waitForDataInBackgroundAndNotify blocking (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: NSUnarchiver and StickiesDatabase
  • Next by Date: Why is NULL used sometimes when documentation specifies nil?
  • Previous by thread: waitForDataInBackgroundAndNotify blocking
  • Next by thread: Re: How to remove the quit menu item of the Doc menu of an application?
  • Index(es):
    • Date
    • Thread