mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
tweak warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30784 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5a58a65949
commit
505d3e4a8b
3 changed files with 27 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-06-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSUserDefaults.m: Remove inappropriate warning (when library
|
||||||
|
used without resources).
|
||||||
|
|
||||||
2010-06-16 Sergey Golovin
|
2010-06-16 Sergey Golovin
|
||||||
|
|
||||||
* Source/NSTimeZone.m: find timezone from localtime file when it's
|
* Source/NSTimeZone.m: find timezone from localtime file when it's
|
||||||
|
|
|
@ -88,8 +88,6 @@ after-distclean::
|
||||||
# why we can't guess what the ./configure arguments were last time
|
# why we can't guess what the ./configure arguments were last time
|
||||||
# ./configure was called - make distclean cleans the sources
|
# ./configure was called - make distclean cleans the sources
|
||||||
# completely, wiping out any memory of specific configuration.
|
# completely, wiping out any memory of specific configuration.
|
||||||
base.make: base.make.in Version configure
|
config.mak base.make: config.mak.in base.make.in Version configure
|
||||||
./configure
|
./configure
|
||||||
|
|
||||||
config.mak: config.mak.in configure
|
|
||||||
./configure
|
|
||||||
|
|
|
@ -588,14 +588,14 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
||||||
*/
|
*/
|
||||||
NSFileManager *fm = [NSFileManager defaultManager];
|
NSFileManager *fm = [NSFileManager defaultManager];
|
||||||
NSString *tail = [[[[[@"Libraries"
|
NSString *tail = [[[[[@"Libraries"
|
||||||
stringByAppendingPathComponent: @"gnustep-base"]
|
stringByAppendingPathComponent: @"gnustep-base"]
|
||||||
stringByAppendingPathComponent: @"Versions"]
|
stringByAppendingPathComponent: @"Versions"]
|
||||||
stringByAppendingPathComponent:
|
stringByAppendingPathComponent:
|
||||||
OBJC_STRINGIFY(GNUSTEP_BASE_MAJOR_VERSION.GNUSTEP_BASE_MINOR_VERSION)]
|
OBJC_STRINGIFY(GNUSTEP_BASE_MAJOR_VERSION.GNUSTEP_BASE_MINOR_VERSION)]
|
||||||
stringByAppendingPathComponent: @"Resources"]
|
stringByAppendingPathComponent: @"Resources"]
|
||||||
stringByAppendingPathComponent: @"Languages"];
|
stringByAppendingPathComponent: @"Languages"];
|
||||||
NSArray *paths = NSSearchPathForDirectoriesInDomains (NSLibraryDirectory,
|
NSArray *paths = NSSearchPathForDirectoriesInDomains
|
||||||
NSAllDomainsMask, YES);
|
(NSLibraryDirectory, NSAllDomainsMask, YES);
|
||||||
|
|
||||||
added_lang = NO;
|
added_lang = NO;
|
||||||
added_locale = NO;
|
added_locale = NO;
|
||||||
|
@ -603,8 +603,8 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
||||||
while ((lang = [enumerator nextObject]))
|
while ((lang = [enumerator nextObject]))
|
||||||
{
|
{
|
||||||
NSDictionary *dict = nil;
|
NSDictionary *dict = nil;
|
||||||
NSString *path = nil;
|
NSString *path = nil;
|
||||||
NSEnumerator *pathEnumerator = [paths objectEnumerator];
|
NSEnumerator *pathEnumerator = [paths objectEnumerator];
|
||||||
|
|
||||||
while ((path = [pathEnumerator nextObject]) != nil)
|
while ((path = [pathEnumerator nextObject]) != nil)
|
||||||
{
|
{
|
||||||
|
@ -664,15 +664,12 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
||||||
dict = GSDomainFromDefaultLocale ();
|
dict = GSDomainFromDefaultLocale ();
|
||||||
if (dict != nil)
|
if (dict != nil)
|
||||||
{
|
{
|
||||||
[sharedDefaults setVolatileDomain: dict forName: lang];
|
[sharedDefaults setVolatileDomain: dict
|
||||||
|
forName: lang];
|
||||||
|
|
||||||
/* We do not set added_lang to YES here
|
/* We do not set added_lang to YES here
|
||||||
* because we want the improper installation
|
* because we want the basic hardcoded defaults
|
||||||
* warning to be printed below if our own
|
* to be used in that case.
|
||||||
* English language dictionary is not found,
|
|
||||||
* and we want the basic hardcoded defaults to
|
|
||||||
* be used in that case. (FIXME: Review this
|
|
||||||
* decision).
|
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -683,9 +680,10 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
||||||
|
|
||||||
if (added_lang == NO)
|
if (added_lang == NO)
|
||||||
{
|
{
|
||||||
/* Ack! We should never get here. */
|
/* No language information found ... probably because the base
|
||||||
NSWarnMLog(@"Improper installation: No language locale found");
|
* library is being used 'standalone' without resources.
|
||||||
|
* We need to use hard-coded defaults.
|
||||||
|
*/
|
||||||
/* FIXME - should we set this as volatile domain for English ? */
|
/* FIXME - should we set this as volatile domain for English ? */
|
||||||
[sharedDefaults registerDefaults: [self _unlocalizedDefaults]];
|
[sharedDefaults registerDefaults: [self _unlocalizedDefaults]];
|
||||||
}
|
}
|
||||||
|
@ -1442,7 +1440,7 @@ static BOOL isPlistObject(id o)
|
||||||
if (dict != nil)
|
if (dict != nil)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"a volatile domain called %@ exists", domainName];
|
format: @"a volatile domain called %@ exists", domainName];
|
||||||
}
|
}
|
||||||
domain = [domain mutableCopy];
|
domain = [domain mutableCopy];
|
||||||
[_persDomains setObject: domain forKey: domainName];
|
[_persDomains setObject: domain forKey: domainName];
|
||||||
|
@ -1840,13 +1838,13 @@ NSLog(@"Creating empty user defaults database");
|
||||||
if (dict != nil)
|
if (dict != nil)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"a persistent domain called %@ exists", domainName];
|
format: @"a persistent domain called %@ exists", domainName];
|
||||||
}
|
}
|
||||||
dict = [_tempDomains objectForKey: domainName];
|
dict = [_tempDomains objectForKey: domainName];
|
||||||
if (dict != nil)
|
if (dict != nil)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"the volatile domain %@ already exists", domainName];
|
format: @"the volatile domain %@ already exists", domainName];
|
||||||
}
|
}
|
||||||
|
|
||||||
DESTROY(_dictionaryRep);
|
DESTROY(_dictionaryRep);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue