discuss-gnustep
[Top][All Lists]
Advanced

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

Path to GNUstep's library


From: Lloyd Dupont
Subject: Path to GNUstep's library
Date: Thu, 4 May 2006 15:45:56 +1000

I wat to improve my Stack Trace code by auutomatically loading symbol for gnustep-base.dll & gnustep-gui.dll

I have written a code like that:
static NSString * pathToLib(NSString * lib)
{
NSString * dir = [NSSearchPathForDirectoriesInDomains(GSToolsDirectory, NSSystemDomainMask, YES) objectAtIndex: 0];
lib = [dir stringByAppendingPathComponent: lib];

if([[NSFileManager defaultManager] fileExistsAtPath: lib])
 return lib;
return nil;
}
NSString * libBase = pathToLib(@"gnustep-base.dll");
NSString * libgui = pathToLib(@"gnustep-gui.dll");

This work but is very windowish... (xxx.dll)
Can anyone could think of a better solutuion?



reply via email to

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