title: Create a Map with "Struct" in NSDictionary in Objective-c?
body: <p>I want to Create a NSMutableDictionary with an Integer Mapping to an strucuter(struct).
  Example:</p>
  
  <pre><code>int nVar = 1;
  typedef struct 
  {
    NSString *pstrName;
  }sSampleStruct;
  sSampleStruct *sObject = {@"test"};
  NSMutableDictioary *pSampleMap = [[NSMutableDictioary allo] init];
  [pSampleMap setObject:sObject forKey:[[nsnumber alloc] initwithint:nVar];
  </code></pre>
  
  <p>This is what i want to do? But as struct is not an object its throwing a warning?
  Is thr any way i can create a dictionary with strutures.
  Or is thr any other way to create a map with structure?</p>
  
  <p>Kindly reply soon.....</p>
  
  <p>Thank you
  Pradeep.</p>