Despite NSTask is missing in runtime, your day can still be saved by:

1) You can use the NSTask implementation from GNUstep, an LGPL-licensed library.
2) You can still use classic UNIX function calls to pipe/fork/dup2/exec

Sent from my iPhone

> On 2013年10月22日, at 9:37, Daniel DeCovnick <danhd...@mac.com> wrote:
> 
> Import the headers and call the functions, if you're linking your application 
> against it. 
> 
> Daniel
> 
>> On Oct 21, 2013, at 6:26 PM, Koen van der Drift <koenvanderdr...@gmail.com> 
>> wrote:
>> 
>> Ok, I figured it out. I was able to build three different static libraries 
>> for armv7, armv7s and i386 and combined them with lipo into one that I added 
>> to my project.
>> 
>> The question now is, how do I call the functions in this library?
>> 
>> On the command line, I need to do something like this:
>> 
>> foo file1 > output
>> 
>> With NSTask and companions it is easy to do this, but how can I do that for 
>> iOS where NSTask is not present?
>> 
>> 
>> - Koen.
>> 
>> 
>>> On Oct 21, 2013, at 4:17 PM, Koen van der Drift <koenvanderdr...@gmail.com> 
>>> wrote:
>>> 
>>> I think I am on the right track now.  I'm building the project (plain c) on 
>>> the command line with an updated makefile for iOS, but am getting some 
>>> compiler and linker errors.  Since this is outside the scope of this 
>>> mailing list I will ask additional questions on the Xcode list.
>>> 
>>> - Koen.
>>> 
>>> 
>>>> On Oct 21, 2013, at 2:53 PM, Koen van der Drift 
>>>> <koenvanderdr...@gmail.com> wrote:
>>>> 
>>>> 
>>>>> On Oct 21, 2013, at 2:43 PM, Jens Alfke <j...@mooseyard.com> wrote:
>>>>> 
>>>>> Can you configure that project as a [static] library that you can link 
>>>>> into your app and call directly?
>>>> 
>>>> Yeah, I though about that as well, and am going to try that. It comes with 
>>>> makefiles for Mac (OSX only though), so I'll start with that.
>>>> 
>>>> Actually, I misspoke, it is not an open source project, but the license 
>>>> says am allowed to use it in a non-commercial project.
>>>> 
>>>> Thanks,
>>>> 
>>>> - Koen.
>> 
>> 
>> _______________________________________________
>> 
>> 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/danhd123%40mac.com
>> 
>> This email sent to danhd...@mac.com
> 
> 
> _______________________________________________
> 
> 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/xcvista%40me.com
> 
> This email sent to xcvi...@me.com

_______________________________________________

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

Reply via email to