bug-gnustep
[Top][All Lists]
Advanced

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

Fw: NSDictionary


From: Michael Scheibler
Subject: Fw: NSDictionary
Date: Thu, 12 Jul 2001 17:22:30 +0200

My colleague added some details:

> NSMutableDictionary *dict = [NSMutableDictionary dictionary];
>
> [dict setObject:@"//something/goes/mad" forKey:@"key"];
> [dict writeToFile:@"/tmp/file" atomically:YES];
>
> dict = [NSDictionary dictionaryWithContentsOfFile:@"/tmp/file"];
> printf("Key = %s\n",[[dict objectForKey:@"key"] lossyCString]);
>
> => Key = ""
>
> Michael Scheibler wrote:
> >
> > When a windows UNC path is written into a dictionary, it becomes
unreadable.
> > The same is for any string beginning with // or /*. After researching,
we
> > found out that NSDictionaries can contain comments - but it must be a
bug if
> > that prevents you to write such strings.
> >
> > {
> >   win32UNCpath = file://win32machine/Programme
> > }
> >
> > Michael Scheibler
> >
> > _______________________________________________
> > Bug-gnustep mailing list
> > Bug-gnustep@gnu.org
> > http://mail.gnu.org/mailman/listinfo/bug-gnustep
>




reply via email to

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