* Source/NSBundle.m (_find_framework): New function.

[NSBundle +_addFrameworkFromClass:]): Use it. Based on patch
from Sheldon Gill.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2005-03-31 23:22:44 +00:00
parent e698f247ee
commit 8931774d38
3 changed files with 39 additions and 54 deletions

View file

@ -264,7 +264,7 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
* user ID. Needed by setuid processes which change the user they
* are running as.<br />
* In GNUstep you should call GSSetUserName() when changing your
* effective user ID, and that class will call this function for you.
* effective user ID, and that function will call this function for you.
*/
+ (void) resetStandardUserDefaults
{
@ -686,6 +686,7 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
return [self initWithUser: NSUserName()];
}
/* Returns the path to the user's ".GNUstepDefaults file" */
static NSString *pathForUser(NSString *user)
{
NSString *database = @".GNUstepDefaults";