On Apr 6, 2009, at 11:02 PM, Michael Ash wrote:
If you do insist on running an inner runloop, then you'll need to do that *first*, before you use waitUntilExit, to avoid the potential deadlock.
There is no potential deadlock. waitUntilExit is documented as running the run loop.
Well, there may be a problem if you read from the file handle in a mode other than the default, as Adam was recommending.
On the other hand, I agree with your recommendation that this sort of thing should just be done totally asynchronously, in which case it's fine to do it on the main thread (which might be simpler for some designs).
Regards, Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
