My favorite (
) thing about this is with the new (edu-mode only currently) iCloud NSUserDefaults, that's KVO-over-NSUserDefaults-over-Cloud.
-
-
- View other replies
-
Looking forward to cloud-defaults-as-network-transport being the new local-defaults-as-view-controller-communication antipattern

- View other replies
-
@Catfish_Man looking forward to KVO triggered change leading to network propagated endless cycle -
@mouthyfool this is my worst fear right now. We axed a bunch of features to avoid this, but there's still the possibility.
-
-
-
One consequence of this: KVO notifications from NSUD are now asynchronous. Still on the main queue, but not immediate. Some compat impact.
-
Another consequence of this: https://twitter.com/Catfish_Man/status/707675436143083522 … Some apps were observing non-standardUserDefaults instances, which used to do nothing…
-
-
-
(Which removes the last reason *I* know of for *apps* to call -synchronize. Non-apps still need to before terminating.)
-
@catfish_man OSX apps too? I learned to always call synchronize after a change… probably b/c I’ve been burned on apps not saving it before -
@kuba_suder the KVO changes aren't in OS X currently, but in general, don't call synchronize even on OS X. Many many things are better. - View other replies
-
@catfish_man does it hurt though if I do? is that about saving some battery or something else? -
@kuba_suder all it does is call dispatch_group_wait() to wait until any set calls finish sending their data to cfprefsd. Slow but harmless.
-
-
-
@Catfish_Man I really admire that you’re trying to compete with Apple’s media event in promoting NSUserDefaults improvements. :) - View other replies
-
@danielpunkass M Y B R A N D ®
-
-
-
Hi,
@Catfish_Man Since I updated to Xcode7.3, some settings I stored in NSUserdefaults was not loaded after reopening. Why? Thanks you! -
@iAugux dunno! Xcode versions don't have any impact on framework versions or behavior. Sounds worth a bug report for sure. -
@Catfish_Man Things changed in iOS 9.3 SDK about NSUserdefaults, I reinstalled previous version(9.2 SDK), nothing wrong. -
@iAugux the SDK, or the OS? The SDK doesn't control the behavior of the software on the device. -
@Catfish_Man Sorry, I reinstalled Xcode7.2(contains SDK 9.2), compiled and ran on my iphone(iOS 9.3). Nothing wrong. -
@iAugux oh now that's fascinating. That's super unusual, and actually narrows down the possibilities a lot. Thanks for the info! - View other replies
-
@Catfish_Man @hmd183 Seems the issue has been fixed in iOS 9.3.1 - View other replies
-
@iAugux@Catfish_Man +1 it works now. Would it be related somehow to the links issue drying up the memory? - View other replies
- Show more
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
David Smith
Doug™
Kuba Suder
Daniel Jalkut
iAugus
ahbou