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/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to