mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Macos compatibility fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27736 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
53d2e0a7e0
commit
b326420a1a
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-01-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSURL.m: For file URL, make relative path absolute.
|
||||
|
||||
2009-01-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Documentation/readme.texi:
|
||||
|
|
|
@ -620,10 +620,15 @@ static unsigned urlAlign;
|
|||
*/
|
||||
- (id) initFileURLWithPath: (NSString*)aPath
|
||||
{
|
||||
BOOL flag = NO;
|
||||
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||
BOOL flag = NO;
|
||||
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath: aPath
|
||||
isDirectory: &flag] == YES)
|
||||
if ([aPath isAbsolutePath] == NO)
|
||||
{
|
||||
aPath = [[mgr currentDirectoryPath]
|
||||
stringByAppendingPathComponent: aPath];
|
||||
}
|
||||
if ([mgr fileExistsAtPath: aPath isDirectory: &flag] == YES)
|
||||
{
|
||||
if ([aPath isAbsolutePath] == NO)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue