mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Documentation and debug logging updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97d697014f
commit
61f8c23511
11 changed files with 2803 additions and 2278 deletions
|
@ -46,6 +46,7 @@
|
|||
#include <Foundation/NSPathUtilities.h>
|
||||
#include <Foundation/NSProcessInfo.h>
|
||||
#include <Foundation/NSRunLoop.h>
|
||||
#include <Foundation/NSSet.h>
|
||||
#include <Foundation/NSThread.h>
|
||||
#include <Foundation/NSTimer.h>
|
||||
#include <Foundation/NSUtilities.h>
|
||||
|
@ -84,6 +85,26 @@ static void updateCache(NSUserDefaults *self)
|
|||
{
|
||||
if (self == sharedDefaults)
|
||||
{
|
||||
NSArray *debug;
|
||||
|
||||
/**
|
||||
* If there is an array NSUserDefault called GNU-Debug,
|
||||
* we add its contents to the set of active debug levels.
|
||||
*/
|
||||
debug = [self arrayForKey: @"GNU-Debug"];
|
||||
if (debug != nil)
|
||||
{
|
||||
unsigned c = [debug count];
|
||||
NSMutableSet *s;
|
||||
|
||||
s = [[NSProcessInfo processInfo] debugSet];
|
||||
while (c-- > 0)
|
||||
{
|
||||
NSString *level = [debug objectAtIndex: c];
|
||||
|
||||
[s addObject: level];
|
||||
}
|
||||
}
|
||||
flags[GSMacOSXCompatible]
|
||||
= [self boolForKey: @"GSMacOSXCompatible"];
|
||||
flags[GSOldStyleGeometry]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue