diff --git a/ChangeLog b/ChangeLog index 01e35d79c..a5c268fe6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-06-21 Richard Frith-Macdonald + + * Source/NSBundle.m: ([-initWithPath:]) expand paths with tildes. + 2005-06-17 Richard Frith-Macdonald * Source/NSConnection.m: Removed bogus diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 14012204e..cb03981a2 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -900,6 +900,10 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory) path = [[[NSFileManager defaultManager] currentDirectoryPath] stringByAppendingPathComponent: path]; } + if ([path hasPrefix: @"~"] == YES) + { + path = [path stringByExpandingTildeInPath]; + } /* Check if we were already initialized for this directory */ [load_lock lock];