I am not familiar with C. I have a method created by someone else that has a CFDicionary that was created like this
touchBeginPoints = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
point = (CGPoint *)malloc(sizeof(CGPoint));
CFDictionarySetValue(touchBeginPoints, touch, point);
I would like to dealloc the dictionary now. As far as I understand, I have to go item by item on whatever number of entries the dictionary has and free each one.
something like
free((void *)CFDictionaryGetValue(touchBeginPoints, ...));
CFDictionaryRemoveValue(touchBeginPoints, ...);
So, how do I iterate thru this CFDictionary freeing each point stored there and removing each dictionary entry?
thanks for any help.