Top "Nskeyedarchiver" questions

NSKeyedArchiver, a concrete subclass of NSCoder, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file.

Encode NSArray or NSDictionary using NSCoder

I was wondering whether or not it is possible to use the NSCoder method: - (void)encodeObject:(id)objv forKey:(…

iphone nsarray nskeyedarchiver gamekit
Save and retrieve value via KeyChain

I'm trying to store an Integer and retrieve it using KeyChain. This is how I save it: func SaveNumberOfImagesTaken() { let …

ios swift keychain nskeyedarchiver
Simple persistent storage in Swift

I have an array of objects each with a number of properties. Here is some sample data taken by looping …

arrays swift nsuserdefaults nskeyedarchiver persistent-storage
Swift structs to NSData and back

I have a struct containing a struct and an NSObject that I want to serialize into an NSData object: struct …

swift serialization struct nsdata nskeyedarchiver
NSKeyedArchiver archivedDataWithRootObject:

Is the parameter for NSKeyedArchiver archivedDataWithRootObject: supposed to be the array I am trying to save, or the array converted …

objective-c cocoa-touch nsmutablearray nsdata nskeyedarchiver
NSKeyedArchiver and NSKeyedUnarchiver with NSMutableArray

I'm hoping this isn't something to do with the fact that I'm using a Mutable array here, but this one …

objective-c cocoa nsmutablearray nskeyedarchiver archiving
iOS 12.0 Alternative to Using Deprecated archiveRootObject:toFile:

With iOS 12, archiveRootObject:toFile:has been deprecated. Can anyone suggest a streamlined alternative to archiving objects to a file? //Generic …

objective-c nskeyedarchiver ios12
How to encode and decode a custom class with NSKeyedArchiver

I have a custom class that I wish to save and load. The class contains an NSDate, an NSString, and …

xcode memory-management nskeyedarchiver nscoding saving-data
Saving NSMutableArray to NSUserDefaults using NSKeyedArchiver

I'm having trouble retrieving a saved NSMutableArray containing a custom object. The app crashes and the console reports http://pastie.…

iphone nsmutablearray nsuserdefaults nskeyedarchiver
IOS editor bug. archivedData renamed

Please help me! I am stuck in a loop and can't find my way out. I am trying to learn …

ios swift nskeyedarchiver