title: NSDictionary (storing view controllers) in iCloud
body: <p>My view controllers have a lot of bools, strings and ints that they save with NSCoding, and then a couple of classes save more of the same kind of information. I tie it all together by putting the view controllers in an NSMutableDictionary and saving it with NSKeyedArchive. </p>
  
  <pre><code>NSMutableDictionary *rootObject;
  rootObject = [NSMutableDictionary dictionary];
  [rootObject setValue:self.controllers forKey:@"controllers"];
  [NSKeyedArchiver archiveRootObject:rootObject toFile:path];
  </code></pre>
  
  <p>Using NSKeyedUnarchiver to set the view controllers brings back all of their NSCoded data and it works well. </p>
  
  <p>I'm looking at implementing iCloud and am confused about the best way to go about it. If I store the NSMutableDictionary in a UIDocument class specifically made for saving and then load it up, will it carry the NSCoded values over? </p>