Re: NSTask exception on Intel
Re: NSTask exception on Intel
- Subject: Re: NSTask exception on Intel
- From: j o a r <email@hidden>
- Date: Sat, 20 Jan 2007 16:59:44 +0100
On Jan 20, 2007, at 3:36 PM, Nick Briggs wrote:
This code works fine on PPC, but on Intel throughs an exception at
"data = [handle availableData]" , any clues why?
You probably need to "-[NSTask waitUntilExit]" before you try to read
data from the handle.
Also note that with this code you will run into problems if the
amount of data returned from the task excedes the size of the buffer
that collects it. Check the archives for lots of information on that
topic.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden