Compilation error: EmacsView does not declare NSAccessibility conformance so accessibilityConvertScreenRect: is not visible to the compiler. Replaced with manual coordinate conversion: primaryH = NSScreen.screens.first.frame.height cgRect.origin.y = primaryH - cgRect.origin.y - cgRect.size.height