discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Problem NSDictionary: negative NSNumber in property list


From: Erik M. Buck
Subject: Re: Problem NSDictionary: negative NSNumber in property list
Date: Thu, 27 Sep 2001 13:44:02 -0500

Did you hand edit the file ?  Try putting quotes around the numbers e.g
"-0.5"

----- Original Message -----
From: "Rene Cornils" <cornils@mail.desy.de>
To: <discuss-gnustep@gnu.org>
Sent: Thursday, September 27, 2001 12:07 PM
Subject: Problem NSDictionary: negative NSNumber in property list


> 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
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>





reply via email to

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