tags:

views:

12

answers:

0

How do you use NSCoder to encode and decode custom types?

For example, how would you use NSCoder with an instance of "STATE" where:

typedef enum { ON, OFF } STATE;