Top "Nscoding" questions

NSCoding is a protocol from Apple Foundation framework.

When to use NSSecureCoding

I'm learning about the NSSecureCoding protocol introduced by Apple in iOS 6. From my understanding so far, it should be used …

ios objective-c security nscoding nssecurecoding
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
archive array of optional structs with NSCoding in Swift?

I've done a lot of NSCoding archiving in Obj-C, but I'm not sure how it handles structs in Swift, nor …

arrays struct swift nscoding optional
Swift call class function from corresponding subclass in superclass function

I would like to implement init(coder aDecoder: NSCoder!) in a superclass, and use it in all subclasses by calling …

ios swift nscoding
Swift: Does not conform to protocol NSCoding

I am trying to use the NSCoding protocol on a class I have written in swift, but cannot seem to …

ios iphone swift nscoding
Write custom object to .plist in Cocoa

I am blocking into something and I am sure it is too big. I have a custom object that look …

objective-c cocoa nsobject nscoding
encodeWithCoder: unrecognized selector sent to instance

I'm attempting use NSCoding protocol to read and write data to plist. I get an exception when I try to …

ios arrays swift nscoding
How can I decode an object when original class is not available?

I have an iOS 7 application that saves a custom object to app's iCloud Docs folder as a file. For this, …

ios swift nscoding nskeyedunarchiver
Saving Array with NSCoding

I have a small app that has a few saving functionalities. I have a data model class called: Closet: class …

swift ios8 nscoding data-persistence
Converting CLLocationCoordinate2D to a String that can be stored

I'm trying to save the coordinates of a user while in one ViewController so that it can be used to …

ios swift location cllocation nscoding