mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:00:38 +00:00
Corrected two errors in [writeToFile:] introduced by the last
changes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9465 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5d58b4955d
commit
434e5cff50
1 changed files with 7 additions and 4 deletions
|
@ -323,8 +323,10 @@ static NSLock *_gnustep_color_list_lock = nil;
|
|||
if (path == nil || ([fm fileExistsAtPath: path isDirectory: &isDir] == NO))
|
||||
{
|
||||
// FIXME the standard path for saving color lists?
|
||||
path = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSUserDomainMask, YES) stringByAppendingPathComponent: @"Colors"];
|
||||
path = [[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSUserDomainMask, YES)
|
||||
objectAtIndex: 0]
|
||||
stringByAppendingPathComponent: @"Colors"];
|
||||
isDir = YES;
|
||||
}
|
||||
|
||||
|
@ -353,8 +355,9 @@ static NSLock *_gnustep_color_list_lock = nil;
|
|||
else
|
||||
{
|
||||
tmpPath = [path stringByDeletingLastPathComponent];
|
||||
if ([NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSAllDomainsMask, YES) containsObject: tmpPath])
|
||||
if (![NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSAllDomainsMask, YES)
|
||||
containsObject: tmpPath])
|
||||
path_is_standard = NO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue