title: Can't save to plist
body: <p>I have my own object class from inherited from NSObject</p>
  
  <pre><code>@interface BlockedCell : NSObject 
  {
      NSValue *gridValue;
      NSString *name;
  }
  
  @property (nonatomic, retain) NSValue *gridValue;
  @property (nonatomic, retain) NSString *name;
  
  @end
  </code></pre>
  
  <p>So I try to create a few objects:</p>
  
  <pre><code>NSMutableDictionary *dict = [[dict alloc] init];
  for (int i = 0; i &lt; 5; ++i)
  {
      BlockedCell *block = [[BlockedCell alloc] init];
      block.gridValue = [NSValue valueWithCGPoint: CGPointMake(0.0f, 0.0f)];
      block.name = @"something";
      [dict setObject: block forKey: [NSString stringWithFormat: @"item_%d", i]];
      [block release];
  }
  
  if([dict writeToFile: path atomic: YES])
     NSLog(@"Saved");
  else
     NSLog(@"Failed to save");
  
  [dict release];
  </code></pre>
  
  <p>And what I get for the output is "Failed to save"..
  If my dictionary does not contains any data, then it will output "Saved"</p>
  
  <p>EDIT:
  After I did more testing, I found out that actually is the NSValue causing the saving failed.
  So what should I do if I want to save CGPoint into plist?</p>