help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange behaviour?


From: Christian Klein
Subject: strange behaviour?
Date: Fri, 21 Jan 2005 21:05:08 +0100
User-agent: KMail/1.7.1

Hello,

I have this piece of code in my little test application:

    NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
    if([ud objectForKey: @"NSWriteOldStylePropertyLists"] == NO)
        NSLog(@"returned NO\n");
    else
        NSLog(@"returned YES\n");

    if(GSMacOSXCompatiblePropertyLists() == NO)
        NSLog(@"returned NO\n");
    else
        NSLog(@"returned YES\n");

and my GNUstepDefaults looks like this:
{
    NSGlobalDomain = {
                NSWriteOldStylePropertyLists = 0;
    };
}


when the code above runs, it outputs:
2005-01-21 20:57:57.000 ab[61277] returned YES
2005-01-21 20:57:57.000 ab[61277] returned NO

Shouldn't the result be the same?

regards,
Christian Klein



reply via email to

[Prev in Thread] Current Thread [Next in Thread]