3

I want a custom class based on NSObject to be serializable. I have read this but want to ask some additional Qs.

  1. Does NSObject implement NSCoder?
  2. I also want to ask if I can serialize an array of some objects of this custom class that I want to be serializable. Does this require some special init?
  3. I know that I should implement initWithCoder and encodeWithCoder. Is it the variables in my custom object class that I should Encode/Decode there?
Community
  • 1
  • 1
Nicklas
  • 31
  • 1
  • 2

1 Answers1

2
apaderno
  • 28,547
  • 16
  • 75
  • 90