Facebook
  1.   WId windowObject = this->winId();
  2.   objc_object* nsviewObject = reinterpret_cast<objc_object*>(windowObject);
  3.   objc_object* nsWindowObject = ((id (*)(id, SEL))objc_msgSend)(nsviewObject, sel_registerName("window"));
  4.   int NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0;
  5.   ((id (*)(id, SEL, int))objc_msgSend)(nsWindowObject, sel_registerName("setCollectionBehavior"), NSWindowCollectionBehaviorCanJoinAllSpaces);
  6.  
  7.   // Ignore mouse events on Mac
  8.   // Qt::WindowTransparentForInput bug
  9.   // https://bugreports.qt.io/browse/QTBUG-45498
  10.   ((id (*)(id, SEL, bool))objc_msgSend)(nsWindowObject, sel_registerName("setIgnoresMouseEvents"), true);