quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

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
  • NSKeyedArchiving
    • NSObject protocol
    • initWithCoder
      • self = [super init];
      • decodeObjectForKey
    • encodeWithCoder
      • encodeObjectForKey
  • model manager
    • NSKeyedArchiver
    • NSKeyedUnarchiver
    • @"hoge.dat" binary file