I've some news for you.
I've done much tries, dropping most of my work and yet I've still noticed troubles (data corruption).
This morning I thought of something that was actually... quite true. That means I finally found why everything was going wrong.
If you have looked at my work, you may have noticed a #ifdefined(__OBJC__) block inside of the WindowImplCocoa class declaration. This was allowing me to use objc-C objects among the other members of the C++ class. C++ files couldn't see these members and anyway, they wouldn't have liked to. So everything looked fine.
But ! ...as these members weren't visible from the C++ files, when allocating memory for a WindowImplCocoa object, memory was allocated only for the visible members. That means I was using members located in a non-allocated memory zone, and the following allocations were changing the value of my members.
Well... now I would enjoy being positive. I fixed that and... I would like you to tell me if everything works fine
.
Note: I didn't say the port was completely done.
PS: I hope my frenchy English is somewhat fine
.