On 21 Nov 2010, at 11:21, Truls Becken wrote: > 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.
Just to clarify, 'not available on OSX' here means that in order to use it on OSX you have to build/install it ... it's not supplied as part of the Apple system. Of course, building/installing the base-additions library may not be worth bothering with just to use a single method extension method. _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
