• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Preferences are not read
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Preferences are not read
      • From: Quentin Mathé <email@hidden>
  • Prev by Date: NSRectFill not supporting compositing?????
  • Next by Date: Re: Preferences are not read
  • Previous by thread: Re: NSRectFill not supporting compositing?????
  • Next by thread: Re: Preferences are not read
  • Index(es):
    • Date
    • Thread