-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swizzle object access methods of NSUserDefaults for auto (de)serialis…
…ation This category will automatically (de)serialize all NSObjects conforming to NSSecureCoding protocol when accessing any NSUserDefaults db. This works automagically and has only one small downside: NSData objects won't be saved as NSData objects but serialized into an NSData object. Since we control both, setters and getters, this doesn't matter (I will only matter if setting NSData values in the underlying property list using an external tool).
- Loading branch information
1 parent
a6dcf66
commit 8337ad3
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters