title: how can I call objectForKey from an NSDictionary with an int where the keys are NSNumbers
body: <p>I'm trying to get and set from an <code>NSDictionary</code> with <code>NSNumber</code>s as the keys.   I think I'm doing things according to this answer <a href="https://stackoverflow.com/a/6891489/194309">https://stackoverflow.com/a/6891489/194309</a> but my code below returns null values.</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      NSInteger const SET1 = 1;
      NSInteger const SET2 = 2;
  
  
      videoKeyOfTag = [[NSDictionary alloc] initWithObjectsAndKeys:
                      [NSNumber numberWithInt:SET1], @"well",
                      [NSNumber numberWithInt:SET2], @"great",
                      nil];
      NSLog(@"to see well: %@",[videoKeyOfTag objectForKey:[NSNumber numberWithInt:SET1]]);   
  
  }
  </code></pre>
  
  <p>I expect <code>to see well: well</code> in the log but instead I see what I don't want:</p>
  
  <pre><code>to see well: (null)
  </code></pre>
  
  <p>Starting with an <code>int</code>, how can I call <code>objectForKey</code> from an <code>NSDictionary</code> where the keys are <code>NSNumber</code>s?</p>
  
  <p>(I eventually want to extract values from the <code>NSDictionary</code> with <code>[sender tag]</code> as the meta-key.)</p>