title: Do I need to release NSNumbers added to a NSDictionary myself?
body: <p>I'm creating an NSDictionary which maps objects to integers, and because NSDictionaries don't handle anything but objects I have to wrap each integer in an NSNumber object with [NSNumber numberWithInt:30] or what have you. What I'm not clear about is whether or not I need to release all of those NSNumber objects I'm creating. I'm not actually alloc'ing the space for them, so they must be in the autorelease pool, but can I be sure that the NSDictionary object is retaining and releasing them properly? Let's say I'm setting</p>
  
  <pre><code>NSDictionary * myDict = [[NSDictionary alloc] initWithObjectsAndKeys: objectOne, [NSNumber numberWithInt: 30], nil];
  </code></pre>
  
  <p>and I'm properly releasing the NSDictionary when I'm done with it (since I <em>am</em> alloc'ing the space for that within my own code).</p>