discuss-gnustep
[Top][All Lists]
Advanced

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

Re: nsuserdefaults help please


From: Dr. Nikolaus Schaller
Subject: Re: nsuserdefaults help please
Date: 15 Jul 2004 01:51:15 -0700

reuss <reuss@chello.hu> wrote in message 
news:<1HlJc.83598$Q74.24843@news.chello.at>...
> [[[masik volatileDomainForName: @"Kukucs"] mutableCopy] setObject: @"semmi" 
> forKey: @"valami"];

You make a copy and modify the copy - not the original.

You should do like:
dd=[[masik volatileDomainForName: @"Kukucs"] mutableCopy];
[dd setObject: @"semmi" forKey: @"valami"];
[masik setVolatileDomain: dd forName: @"Kukucs"];
[dd release];  // a mutableCopy is NOT autoreleased!

hns


reply via email to

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