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: Ben Ketteridge
Subject: Re: Problem NSDictionary: negative NSNumber in property list
Date: Fri, 28 Sep 2001 08:55:59 +0100

----- Original Message ----- 
From: "Erik M. Buck" <embassociates@qwest.net>
To: "Rene Cornils" <cornils@mail.desy.de>; <discuss-gnustep@gnu.org>
Sent: Thursday, September 27, 2001 7:44 PM
Subject: Re: Problem NSDictionary: negative NSNumber in property list


> Did you hand edit the file ?  Try putting quotes around the numbers e.g
> "-0.5"
But won't the parser then assume it to be a string?

Kind Regards
Ben.

+----------------------------+
| Dr Ben Ketteridge          |
| ben.ketteridge@proact.net  |
|                            |
| PME Product Manager,       |
| ProAct International,      |
| PO Box 100, Denbigh.       |
| Tel: 01745 816315 ext. 242 |
+----------------------------+



> ----- 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
> >
> 
> 
> 
> _______________________________________________
> 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]