Preferences are not read
Preferences are not read
- Subject: Preferences are not read
- From: Arthur VIGAN <email@hidden>
- Date: Tue, 20 May 2003 14:15:39 +0200
Hi,
My application reads a preference file (which is not the one of the
application) every minutes, and stores the content into an
NSDictionary. I use the following code to read the preference file and
store its content:
if(preferences == nil) // at application launch
preferences = [[NSDictionary alloc]
initWithDictionary:[[NSUserDefaults standardUserDefaults]
persistentDomainForName:@"Application"]];
else // other "loops"
{
[preferences release];
preferences = [[NSDictionary alloc]
initWithDictionary:[[NSUserDefaults standardUserDefaults]
persistentDomainForName:@"Application"]];
}
The problem is that it works well when application launches, but after
the first "loop", the modifications that occure in the preference file
are not read again. Does someone see why?
Thanks a lot in advance,
-- Arthur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.