[Top][All Lists]

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

NSPathUtilities Patch - 5 - NSPathUtilities.m

From: Sheldon Gill
Subject: NSPathUtilities Patch - 5 - NSPathUtilities.m
Date: Tue, 20 Apr 2004 12:59:27 +0800
User-agent: KMail/1.6.1

This is the new module which features:

Simpler and cleaner code. More functionality in fewer lines incorporating some 
fixes. More documentation.

Support for configuration file to define GNUstep directory structure. Removes 
requirement to source GNUstep.sh so -base no longer depends on -make being 
installed. If no configuration file is found and environment variables aren't 
defined the base paths are set to compile time defaults. Location of 
configuration file is set by a single #define line so can be easily changed.

Provision for "Platform Support" which causes 
NSSearchPathForDirectoriesInDomains() to return additional paths for 
different platforms. This makes it easier to find applications or other 

Adds GSFindNamedFile() routine to easily locate a file or directory in the 
hierarchy. Makes things easier for rest of GNUstep.

GSDefaultsRootForUser() behaviour changes so that it now returns complete 
path. Formerly it returned NSUserDirectory and NSUserDefaults implementation 
added "Defaults/" to it. This way puts path handling in the one place. Also 
provides the opportunity for configuration system to change what the 
directory is called. For a more MacOS X like structure it could be named 

NSTemporaryDirectory() adds support for the TMPDIR environment variable, 
better supporting OpenBSD and those platforms which follow that security 


Attachment: NSPathUtilities.m
Description: Text Data

reply via email to

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