Hi, thanks for the info, I already came across that forum post, it doesn't really help me if I'm honest, I think I have isolated my problem however, it seems storing Dictionaries as objects inside a dictionary is no problem, the problem is only when I try to store a struct, and I think it's something to do with he memory of the struct.
Here is a sample of what I am doing:
This is my struct
Code:
typedef struct{
NSMutableString *value;
NSDictionary *attributes;
} xmlElement;
In a method of my class I have:
Code:
xmlElement elem;
elem.value = nodeValue;
elem.attributes = nodeAttributes;
[nodeValues setObject:elem forKey:xmlPath];
* nodeValues is a NSMutableDictionary and xmlPath is an NSMutableString
I think that maybe, I need to specify retain for the elem ?
<SOLUTION>
I had to convert the C-struct to objectif C with the NSValue class, and use getValue on that to retrieve the struct.