Experiment with function visibility ... try caching locale dictionary to be

accessed from a function yet invisible outside the base library even when
caching is done in the Additions subproject.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23903 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-18 15:36:52 +00:00
parent 8ec6e389ee
commit fd98041ec7
15 changed files with 159 additions and 91 deletions

View file

@ -40,6 +40,7 @@
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSValue.h"
#include "Foundation/NSKeyValueCoding.h"
#include "Foundation/NSUserDefaults.h"
// For private method _decodeArrayOfObjectsForKey:
#include "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSCategories.h"
@ -939,10 +940,11 @@ compareIt(id o1, id o2, void* context)
*/
- (BOOL) writeToFile: (NSString *)path atomically: (BOOL)useAuxiliaryFile
{
NSDictionary *loc = [_GSPrivate userDefaultsDictionaryRepresentation];
NSDictionary *loc;
NSString *desc = nil;
NSData *data;
loc = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
if (GSMacOSXCompatiblePropertyLists() == YES)
{
GSPropertyListMake(self, loc, YES, NO, 2, &desc);
@ -964,10 +966,11 @@ compareIt(id o1, id o2, void* context)
*/
- (BOOL) writeToURL: (NSURL *)url atomically: (BOOL)useAuxiliaryFile
{
NSDictionary *loc = [_GSPrivate userDefaultsDictionaryRepresentation];
NSDictionary *loc;
NSString *desc = nil;
NSData *data;
loc = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
if (GSMacOSXCompatiblePropertyLists() == YES)
{
GSPropertyListMake(self, loc, YES, NO, 2, &desc);