bug-gnustep
[Top][All Lists]
Advanced

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

[bug #39300] Updating NSUserDefaults doesn't update


From: Michael Silva
Subject: [bug #39300] Updating NSUserDefaults doesn't update
Date: Thu, 20 Jun 2013 15:57:12 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17

URL:
  <http://savannah.gnu.org/bugs/?39300>

                 Summary: Updating NSUserDefaults doesn't update
                 Project: GNUstep
            Submitted by: msilvax28
            Submitted on: Thu 20 Jun 2013 03:57:11 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

v1.24.4 GNUstep base on Debian Wheezy x86:

if a program updates one of the 'cached' GSUserDefault defaults values defined
in NSUserDefaults.m as:

static BOOL     flags[GSUserDefaultMaxFlag] = { 0 };

the flags 'cache' of the value is not updated.  Even after synchronizing the
NSUserDefaults.

Thus the settings change doesn't take place until the program is exited and
restarted.

I have a simple patch that calls updateCache(self) on every call to
setObject:forKey:, but I don't know if that's really the right approach.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39300>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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