On Sun, May 10, 2009 at 2:18 PM, marc hoffman <m...@elitedev.com> wrote:
> Hi,
>
> i have an odd issue with NSTask. for some reason, no matter what result code
> my executable returns (im running xcodebuild, if that matters), NSTask's
> terminationStatus always reports back as 1. if instead i use system() to run
> the exact same command, i get bak proper error codes (0 for success., other
> non-zero, non-one values for real failures.
>
> anyone have any ideas what could be going wrong to cause this?

Probably it's always reporting 1 because your command is failing, and
thus the code always *is* 1.

However, not being a mind reader (my telepathy kit is in the mail)
that's just pure speculation, because an informed answer is impossible
without seeing the code in question.

Mike
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to