D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Leaflet@lemmy.world to Apple@lemmy.worldEnglish · 9 months ago

Beware UserDefaults: a tale of hard to find bugs, and lost data

christianselig.com

external-link
message-square
0
link
fedilink
28
external-link

Beware UserDefaults: a tale of hard to find bugs, and lost data

christianselig.com

Leaflet@lemmy.world to Apple@lemmy.worldEnglish · 9 months ago
message-square
0
link
fedilink
Excuse the alarmist title, but I think it’s justified, as it’s an issue that’s caused me a ton of pain in both support emails and actually tracking it down, so I want to make others aware of it so they don’t similarly burned. Brief intro For the uninitiated, UserDefaults (née NSUserDefaults) is the de facto iOS standard for persisting non-sensitive, non-massive data to “disk” (AKA offline). In other words, are you storing some user preferences, maybe your user’s favorite ice cream flavors?
alert-triangle
You must log in or register to comment.

Apple@lemmy.world

apple_enthusiast@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !apple_enthusiast@lemmy.world
Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 6 users / day
  • 236 users / week
  • 1.17K users / month
  • 3.62K users / 6 months
  • 2 local subscribers
  • 19.1K subscribers
  • 563 Posts
  • 3.8K Comments
  • Modlog
  • mods:
  • MichelleG@lemmy.world
  • RoyalEngineering@lemmy.world
  • thisisdee@lemmy.world
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org