Enables tooltips and fixes tooltip related crash on mac

Enables tooltips on Mac and fixes a tooltip related crash.
This seems to work well, but I've deleted some lines that may have had a reason to be there that I did not understand. 
Please, let someone who knows this part of the code review these changes, or at least test them.