On Jul 31, 2012, at 6:53 PM, "Mr. Gecko" <grmrge...@gmail.com> wrote:
> > I can confirm if you do not stop the run loop, it will get everything… > However… I cannot do this as I do not know how much data I am receiving from > the task. 1) Yes, you need to run the run loop forever (NSDistantFuture). 2) You don't need to know in advance how much data you need to read. Just stop running the run loop when you're done. 3) Why are you using threads at all? You should just be able to fire off an NSTask from the main thread and let its run loop take care of notifying you. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com