ipad - iphone - freeing a CFDictionary -


I'm not familiar with C. I have a method that has CFDCinary which is designed like this

TouchBinPoint = CFAstricatetable (zero, 0, zero, zero); Point = (CP point *) Molec (size (CGPOONI)); CFxistat Value (TouchBointPoint, Touch, Point);

I want to deluxe the dictionary now. As far as I understand, I have to go to the item on the list of entries in each item by item.

Something like this

  free ((Zero *) CFDictionaryGetValue (touch point, ...)); CFDictionaryRemoveValue (touch point, ...);  

So, how do I repeat each point through this CFDA and by deleting each dictionary entry?

Thanks for any help.

You do not.

You read this page:

You will call it the default, standard dictionary call CFRetain () to call the value passed by you, And CFRelease () should leave it. You think that "... but it is not appropriate to call against CFPET (CGFET)". You understand that the people who asked you to just release the dictionary, they will leak at the best and they will crash when bad.

Then you can create a structure like this:

  MyValueCallbacks = {0, NULL, myRelease, NULL, NULL};  

And assume as the term when making a callback (the last argument). The MyRelease function should look like this:

  My release from zero (CFAllocatorRef allocation, const zero * value) {Free (value); }  

Now, whenever the dictionary issues the value, it will call you free ().

After saying all this, if you are a newcomer, for C, this is not the place to start.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -