discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a command using NSTask


From: Truls Becken
Subject: Re: Running a command using NSTask
Date: Sun, 21 Nov 2010 12:21:56 +0100

On Sun, Nov 21, 2010 at 11:58, Csanyi Pal wrote:

> but when I try to compile it I get errors:
>
> MainController.m: In function ‘-[MainController DPbitSetReset:]’:
> MainController.m:124: error: ‘launchPathForTool’ undeclared (first use
> in this function)

<snip>

> What is the problem in my code?
> How can I fix it?

You replaced:

> [DPSetBit0 setLaunchPath: @"/usr/local/bin/DPSetBit0"];

with just a copy of a method signature:

> (NSString*) launchPathForTool: (NSString*)DPSetBit0;

I think what you wanted was:

[DPSetBit0 setLaunchPath: [NSTool launchPathForTool: @"DPSetBit0"]];

Note that this method is a GNUstep addition, not available on OS X.

-Truls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]