mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
5239f962dc
commit
25b8816b4d
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>
|
2009-01-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Documentation/readme.texi:
|
* Documentation/readme.texi:
|
||||||
|
|
|
@ -620,10 +620,15 @@ static unsigned urlAlign;
|
||||||
*/
|
*/
|
||||||
- (id) initFileURLWithPath: (NSString*)aPath
|
- (id) initFileURLWithPath: (NSString*)aPath
|
||||||
{
|
{
|
||||||
BOOL flag = NO;
|
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||||
|
BOOL flag = NO;
|
||||||
|
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath: aPath
|
if ([aPath isAbsolutePath] == NO)
|
||||||
isDirectory: &flag] == YES)
|
{
|
||||||
|
aPath = [[mgr currentDirectoryPath]
|
||||||
|
stringByAppendingPathComponent: aPath];
|
||||||
|
}
|
||||||
|
if ([mgr fileExistsAtPath: aPath isDirectory: &flag] == YES)
|
||||||
{
|
{
|
||||||
if ([aPath isAbsolutePath] == NO)
|
if ([aPath isAbsolutePath] == NO)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue