NSScreencast Episode #7 Serializing Data to Disk
Serializing Data to Disk - NSScreencast
- Lightweight Data
- login metadata
- caching activity while offline
- simple user generated data
- Property List Serialization
- NS Array, Dictionary, String, Data, Number, Data
- NSDictionary
- NSSearchPathForDirectoriesInDomains
- @"hoge.plist"
- writeToFile
- atomically:YES
- NSSearchPathForDirectoriesInDomains
- NSKeyedArchiving
- NSObject
protocol - initWithCoder
- self = [super init];
- decodeObjectForKey
- encodeWithCoder
- encodeObjectForKey
- NSObject
- model manager
- NSKeyedArchiver
- NSKeyedUnarchiver
- @"hoge.dat" binary file