mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add some new path values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39508 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
55f0869fb7
commit
f42a2ecdc5
3 changed files with 38 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-03-09 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSPathUtilities.h
|
||||
* Source/NSPathUtilities.m
|
||||
Add some new path values.
|
||||
|
||||
2016-03-09 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Headers/Foundation/NSPredicate.h
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** Interface to file path utilities for GNUStep
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2016 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Created: May 1996
|
||||
|
@ -130,9 +130,17 @@ enum
|
|||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
NSDownloadsDirectory = 15, /** location of downloaded files */
|
||||
#endif
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
||||
NSMoviesDirectory = 17, /** location of video/movie files */
|
||||
NSMusicDirectory = 18, /** location of music files */
|
||||
NSPicturesDirectory = 19, /** location of music files */
|
||||
#endif
|
||||
|
||||
NSAllApplicationsDirectory = 100, /** all app directories */
|
||||
NSAllLibrariesDirectory = 101, /** all library resources */
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
|
||||
NSTrashDirectory = 102, /** location of the trash directory */
|
||||
#endif
|
||||
|
||||
#define GSApplicationSupportDirectory NSApplicationSupportDirectory
|
||||
/* GNUstep Directory Identifiers
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Implementation of filesystem & path-related functions for GNUstep
|
||||
Copyright (C) 1996-2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2016 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <address@hidden>
|
||||
Created: May 1996
|
||||
|
@ -2432,7 +2432,7 @@ L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\GNUstep",
|
|||
|
||||
case NSDocumentDirectory:
|
||||
{
|
||||
/* this is relative to the user home annd for the user domain only
|
||||
/* this is relative to the user home and for the user domain only
|
||||
* verified on Macintosh
|
||||
* despite the name it is Documents and not Document....
|
||||
*/
|
||||
|
@ -2446,6 +2446,27 @@ L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\GNUstep",
|
|||
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Downloads");
|
||||
}
|
||||
break;
|
||||
|
||||
case NSMoviesDirectory:
|
||||
{
|
||||
/* Be consistent with NSDocumentDirectory */
|
||||
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Videos");
|
||||
}
|
||||
break;
|
||||
|
||||
case NSMusicDirectory:
|
||||
{
|
||||
/* Be consistent with NSDocumentDirectory */
|
||||
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Music");
|
||||
}
|
||||
break;
|
||||
|
||||
case NSPicturesDirectory:
|
||||
{
|
||||
/* Be consistent with NSDocumentDirectory */
|
||||
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Images");
|
||||
}
|
||||
break;
|
||||
|
||||
case NSCachesDirectory:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue