Hiding & showing Tooltips globally

I am looking for a way to turn on/off the tooltips globally.
Until now I used:

But this seems not to work with cocoa apps anymore.
Is there any replacement?

No one?

Is there a declare for this, or is it not allowed on cocoa framework?
Thanks for any help on this.

I created a base class for windows that has this function built in. See here.

Thanks Kem!
Unfortunately my project has tons of windows and container controls, so I am really looking for a global solution like I had before.