title: how to save new NSMutableDictionary to a property list
body: <p>i've got this method here which runs through every time I press save:</p>
  
  <pre><code>-(void)setName:(NSString *)foodName andCarbs:(NSNumber *)carbAmount{
      [self.userFoodDictionary setObject:(NSString *)foodName forKey:(NSString *)foodName];
      NSString *value = [[NSString alloc] initWithFormat:@"%@ Value", foodName];
      [self.userFoodDictionary setObject:(NSNumber *)carbAmount forKey:(NSString *)value];
      [self.userFoodDictionary writeToFile:self.appDataPath atomically:YES];
  }
  </code></pre>
  
  <p>From my understanding, the second last line should save the <code>userFoodDictionary</code> properties to the specified property list path. But that doesn't seem to happen once. I rebuild the application. Maybe my way of creating a new dictionary object is incorrect. Could someone please explain why this isn't working?</p>