Hi,
I want to Create a NSMutableDictionary with an Integer Mapping to an strucuter(struct). Example:
int nVar = 1;
typedef struct
{
NSString *pstrName;
}sSampleStruct;
sSampleStruct *sObject = {@"test"};
NSMutableDictioary *pSampleMap = [[NSMutableDictioary allo] init];
[pSampleMap setObject:sObject forKey:[[nsnumber alloc] initwithint:nVar];
This is wat 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?
Kindly reply soon.....
Thank you Pradeep.