discuss-gnustep
[Top][All Lists]
Advanced

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

Problem NSDictionary: negative NSNumber in property list


From: Rene Cornils
Subject: Problem NSDictionary: negative NSNumber in property list
Date: Thu, 27 Sep 2001 19:07:32 +0200 (METDST)

Hi there,

I've a problem reading in a property list containing negative numbers.
The command

    [NSDictionary dictionaryWithContentsOfFile:@"ttt"];

fails with

    Parse failed at line 5 (char 58) -
    unexpected character (wanted ';' or '}')

if the file looks like

    {
        Opt1 = 0;
        Opt2 = 0.5;
        Opt3 = 1;
        Opt4 = -0.5;
        Opt5 = -1;
    }

Creating and writing the dictionary is no problem.

How do I read in such dictionaries?

Thanks in advance
Rene




reply via email to

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