The problem with Garbage Collector + mixing ObjC with C++ is that native class can't own ObjC object
Where did you find this information ? I couldn't find any good literature about this with some quick google search..
It was just random post somewhere deep in net (i can't find it anymore, but it works).
P.S. there also something with input delegate (only when you use sfml window in NSView), i just commented it out for my screensaver. (no problems in simple applications)
Can you elaborate a little bit ?
During working on screensaver, there was random crashes inside sfml on mouse move event (in WindowImplCocoa::mouseMovedIn(void)). So i just commented line
[m_delegate setRequesterTo:this];
in constructor that takes WindowHandle. ScreenSaverView handle it automatically (just do drawings). Did not tested it in simple NSView, but there is no problem in simple SFML applications.
I'm not sure, profiller crashes
the profiler and not your app ? what happen when you use a debugger on your app ?
This is something strange, GC Monitor crashes after 10 sec running (every time), but it helped me to solve the first issue.
P.S. I configured the environment to debug screensaver, but i still can't do anything on breakpoint in IDE, i can see local values and call stack.