i have a .m class written in objective c that needs to send information to a .mm class written in c++
i tried to use CFNotification and as far as i can tell the notifcation sent by the .m class can be picked up by the .mm class
the problem now is trying to get information across in that notification. The documentation says i need to pass the info as a CFDictionary, i'm having a lot of trouble trying to create the dictionary...
the problem is due because of the second and third parameter. They require a const void** type... which is a c++ array (right?) and i can't make a c++ array that contains some objective c objects
i tried making a c++ class in another .mm file but i can't include that in the .m file because i get compile errors saying there is stuff wrong with the syntax. if i change the .m file to a .mm file i get rid of those errors but i get a whole lot of other errors from the openGL and a few other conversion compile errors
... i tried making a .m wrapper for the .mm file so i can send and receive NSNotifications but i get a stupid error saying i've tried to redeclare the type of the wrapper but only when i tried using it...